Home>Support>Attachment Pages

Attachment Pages

By Tom, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

We are using Vantage Premium for our real estate website. Now that I am properly naming the photos with the property address for SEO and it is working, can I edit the design of the Attachment Page that comes up. Can I “quick edit” to enable comments?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Tom

    When using quick edit if you do not see the option to enable comments, please click on screen options at the top and check the box to enable comments. This should do it. If the option does not appear please check Settings->Discussion and check that the option to allow user to make comments on posts is enabled.

    Let us know how you get on

    Magus

  2. 9 years, 4 months ago Tom

    yes, I can quick edit and disable comments, but what about the attachment page when someone double clicks on the photo? If they clicked on what I have as a thumbnail, they will get a view of the full size photo on an attachment page. Any way to edit the generic attachment page that is created?

  3. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    Hi Guys

    Attachment pages display comments by default. If you’re browsing the vantage theme folder, the attachment template is called image.php. There you’ll find on line 59:

    <?php comments_template(); ?>
    

    Are you looking to disable comments on the attachment page?

    (Linking to the attachment page is optional)

  4. 9 years, 4 months ago Tom

    Yes we are looking to disable comments

  5. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    The comment field on the attachment page unfortunately doesn’t respond to any WordPress settings. Something we’ll need to look into.

    You could hide the comment fields by inserting the following under Appearance > Custom CSS:

    /* Attachment Page: Hide Comments */
    
    .attachment #single-comments-wrapper { display: none; }
    

    To remove the comments without the CSS hide you’d need to use a child theme. Below is a starter child theme. You’d need to install and activate the child theme and then copy (not cut) image.php from the parent vantage folder into the child vantage folder and comment out or remove line 59.

    https://siteorigin.com/wp-content/uploads/2015/03/vantage-child-starter.zip

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More