Site logo

[Resolved] Creating guestbook-page

Home Forums Support [Resolved] Creating guestbook-page

Home Forums Support Creating guestbook-page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2464905
    Mi

    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.

    #2465074
    David
    Staff
    Customer Support

    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;
    }
    #2465485
    Mi

    Oh perfect, thank you! It works fine!

    #2465844
    David
    Staff
    Customer Support

    Glad to be of help 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.