Jump to content

Archived

This topic is now archived and is closed to further replies.

Keith Vaugh

Disable comments on attachment pages

Recommended Posts

Keith Vaugh

Hi Folks

 

Can't seem to locate a method in anywhere in WP of Framework to disable comments on attachment pages. Searched the forums but didn't get a hit. 

 

Is there something that have missed. The URL for the attachment page is https://www.magva.com/about-us/antonella_profile/ 

 

Thanks in advance

 

Keith

Share this post


Link to post
Share on other sites
batman

Hi Keith

You can go to

Dashboard > Pages > All Page

and  deactivate "allow comments" 

Captura%2520de%2520pantalla%25202013-08-


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Keith Vaugh

I though it was that simple also. The attachment pages don't even show up in the all pages section. I tried it nonetheless with no luck :(

Share this post


Link to post
Share on other sites
batman

Hi again

Please, you can try with this CSS rules

 

.page-id-170 .wp-comments .wp-comments-pad {display:none;}

For example to this page.


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Keith Vaugh

Thanks Batman, that works, but only on a page by page basis. There appears to be a large number of attachment pages (one each media file) so the must be a global setting that can be applied. 

Share this post


Link to post
Share on other sites
Rob

Hi Keith,

 

You have templates being used on pages, and Comments section must have been dragged and dropped into one or more of those templates.  Probably in the Content area, but possibly in the Page Template (full-width).  You will know if the sidebar is next to the comment form, or if it is full-width in the site when viewed in Firebug or Chrome's inspection tools.

 

Look in Dashboard > Pages > All Pages to find the common page template they're using, then, go to Dashboard > PageLines > Drag & Drop to find the Comments section and drag it from the template to Available Sections from that template. Then you won't need settings, or CSS.

 

I assure you, they won't be present on your browser if they're not in a template.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Keith Vaugh

Thanks Rob. 

 

Spot on. the comments were in the default template.

Share this post


Link to post
Share on other sites
Rob

Glad that was the answer!


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

×