Archived topic
Creating a Comment Section with hooks?
5 replies · Started by donandsuji on July 9, 2021
First off thanks a lot for such an awesome theme and for such great help here in support! It's much appreciated!
I have an interesting situation.
I'm using a membership and course plugin that creates its own page template? They aren't ordinary 'pages' or 'posts'.
These pages do not have a 'comments section' on them, (including not have an ability to turn off/on* It's simply not there)
I really need to have a comments section on these courses and lessons pages... And so I was trying to play around with the 'Elements' and 'Hooks' that come with the theme. I can target the correct section of these pages, however, how to code in a comment section is beyond me.,
Is it possible to add the comments section on these pages using hooks?
If so, how exactly would I go about doing that with the elements--> Hooks with Generatepress?
Any help would be amazing! Thanks so much.
Hi Don,
Have you checked with the plugin's support team first to see if they have any recommended solution to enable content in their template?
Let me know :)
I have reached out to them as well., but I'm not sure about their solution quite yet.
I had great success applying another hook by following one of David's articles to add related posts at the end of posts.
I thought this might be a good way to add the comments section in.,
Give this solution a shot:
https://generatepress.com/forums/topic/show-comments-on-arhive-pages/#post-1734657
Not sure if it will work in the plugin's template though.
Sadly, it didn't work. :(
When applied to the archive page, like in that article, it does work though!
I guess this will largely depend on their template?
Yeah unfortunately that's what I thought.