[Support request] How to make comments section full width?

Home Forums Support [Support request] How to make comments section full width?

Home Forums Support How to make comments section full width?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2377714
    wordpressuser13

    I want the “sidebar” to end by the time users scroll down to the comments section. There is no point to continue having the sidebar showing during the comments. Instead, I want the comments to become full width. What PHP/CSS do I have to add to manage this?

    Note: I am not using blocks and prefer not to.

    #2377749
    David
    Staff
    Customer Support
    #2377829
    wordpressuser13

    Hi,

    I added the code – it kind of did it, but the problem is the comments section is now completely full-width (touching the sides of the screen) with no padding around it at all. How can I contain it, same as the footer is contained?

    #2377832
    wordpressuser13

    Also wondering, is there a code that I can use to make the comment section a “hook” in generatepress? They can attach the “hook” above the footer

    #2377881
    Ying
    Staff
    Customer Support

    To add paddings, try adding this CSS:

    .comments-area {
        padding-left: 40px;
        padding-right: 40px;
    }

    Also wondering, is there a code that I can use to make the comment section a “hook” in generatepress? They can attach the “hook” above the footer

    Not sure what this means, the PHP snippet you are using now is adding the comment to the above footer area.

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