• Resolved stug2013

    (@stug2013)


    Hi all, I am trying to enable comments on a page. I have gone into customise-global settings-comments and enabled it there as well as on the specific page itself under discussion I have enabled comments. But nothing shows. https://loveyogaanatomy.com/download-shop/
    In general I haven’t wanted comments on pages so it could be that I have added some code somewhere in the past but can’t remember if I did.
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Stu. I just did a quick test on a default theme install and, setting the configuration as you described, I do get a “Leave a Reply” box below the page content. Wonder if there might be a conflict with Visual Composer or some other plugin?

    Thread Starter stug2013

    (@stug2013)

    Hi bdbrown, I have just tried deactivating Visual Composer and it didn’t make any difference, still no comments. I must admit I am a bit relieved as when I deactivate it it messes up the formatting of those pages I used VC to construct.
    If I had added something to the code what php file would I have put it in to stop comments being displayed on pages. I can then take a look and see if I can find anything in the child theme.

    The comments are called at the bottom of page.php.

    In the old version it was this:

    <?php if ( ot_get_option('page-comments') == 'on' ) { comments_template('/comments.php',true); } ?>

    In the new version it’s this:

    <?php if ( hu_is_checked('page-comments') ) { comments_template('/comments.php',true); } ?>
    Thread Starter stug2013

    (@stug2013)

    Hi BDbrown, I have been a bit slow on this but you were right I have at some stage made some changes to the page.php in order to remove the featured image at the top of pages and must have been comments too. It seems sensible not to try and get rid of some of my old child files as the coding has changed. Is there a setting now where you can choose not to display a featured image on a page or do I have to edit the code again?

    made some changes to the page.php in order to remove the featured image at the top of pages ges

    Couldn’t you just remove the featured image on the page editor?

    Thread Starter stug2013

    (@stug2013)

    It seems to be that if I remove the featured image then it just displays the same with old featured image at top. On a page where no featured image was set then it displays a random image. I was affraid that something I have done in the child theme might be doing this so I have experimented by reverting to original hueman theme and it does exactly the same.

    reverting to original hueman theme and it does exactly the same.

    In the current version page.php calls /parts/page-image.php. In that code, if the page doesn’t have a thumbnail (aka, Featured Image) it doesn’t display anything. Do you perhaps have a plugin that’s somehow setting default featured images?

    Thread Starter stug2013

    (@stug2013)

    Yes indeed you are right. All sorted. Thanks again

    You’re welcome; glad you got it fixed.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘allowing comments on a page’ is closed to new replies.