Archived topic
How to make comments section full width?
4 replies · Started by wordpressuser13 on October 18, 2022
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 there,
see Toms reply here:
https://generatepress.com/forums/topic/move-comments-section-before-the-footer/#post-1663535
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.