This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Attachment Pages

10 years ago · Last reply by Andrew Misplon 10 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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Magus Staff 10 years, 9 months ago

    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. Tom 10 years, 9 months ago

    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. Andrew Misplon Staff 10 years, 9 months ago

    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. Tom 10 years, 9 months ago

    Yes we are looking to disable comments

  5. Andrew Misplon Staff 10 years, 9 months ago

    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.

Have a different question or issue?

Start New Thread