Site logo

Archived topic

How to make comments section full width?

4 replies · Started by wordpressuser13 on October 18, 2022

Viewing posts 1–5 of 5

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.

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?

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

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.

This archived topic is closed to new replies.