Archived topic
Creating guestbook-page
3 replies · Started by Mi on December 17, 2022
Hey, I would need some help again.
I had a guestbook on my old page which contains entries from now 25 years - and I don´t want to give them up.
They are stored in the comments of a page. But the new website has comments disabled on pages via css.
.page .comments-area {
display: none;
}
I´am looking for a way to show them just on the guestbook page. Any idea what to do?
I recognized that I can bring them back with
.page .comments-area {
display: inherit;
}
but I am not sure how to implement it just for one page.
Do I have to create a new hook for it? Or do I have to make a complete page-template? Would it be possible to put the comment-entry fields above the entries for this single page? I´m still not sure how to do it.
Thanks in advance for your help.
Hi there,
if you right click inspect the Page you want to show the comments on, to open the browser developers tools, in the element view in the body tag you will see the pages unique page id class eg. page-id-164
You can then use that in your CSS:
.page-id-164 .comments-area {
display: inherit;
}
Oh perfect, thank you! It works fine!
Glad to be of help :)