Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16899

    Hi,

    I’ve openend comments for certain pages, but in the frontend, there is no comment form shown.

    How can I have comments on pages, too?

    Thanks.

    #93317

    Hi colorit2,

    In the page.php of your theme files you need to replace:

    get_template_part( 'includes/loop', 'page' );

    with

    get_template_part( 'includes/loop', 'page' );

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    There may need to be some css adjusting depending on the output since it has only been coded to work on posts but it most likely won’t be much.

    Additionally, this will not work on any pages using dynamic templates since those pages are loaded and created completely different.

    Regards,

    Devin

    #93318

    thanks, Devin, but I see no comment form at all at those pages, where I have “allowed comments” in the page’s settings.

    What need I to do further?

    #93319

    It worked on my end when I tested it just now so I’m not sure what else to do. Make sure the page in question isn’t using a dynamic template as it will not work on those pages because of the way they are constructed.

    Regards,

    Devin

    #93320

    I’m very sorry, Devin, it works – I have just looked at my wrong site/theme, because I currently run – and work at – a blog with CORONA, one with VELVET and one with NEWSCAST, guess it was too late at night :-(

    Sorry, but it works very fine with CORONA! Thanks!

    #93321

    Hi colorit2,

    Glad that Devin helped you. :)

    Cheers,

    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘How to have comments on PAGES?’ is closed to new replies.