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.
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.
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
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?
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
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!
Hi colorit2,
Glad that Devin helped you. :)
Cheers,
Ismael
This topic has been closed to new replies.