php - How can I prevent the comments section in my WordPress site from spanning the full screen?


I have recently set up my wordpress site, but the comments section below each post spans the full width of the screen, rather than following the margins used in the rest of the page. How do I set the margins to be the same as the rest of the page for this section?




Either your footer elements need to be within thecontainer ID div tag. Or they must be wrapped in their own div with an ID or class given the style

#footerWrapper {
width: 768px;
margin: 0 auto;

This will center and align them to the main container div. It's most likely the wordpress functions were moved around in the template files.

The footer on your home page you'll see is wrapped in

<div id="footer" class="full left"></div>

So someone messed up your single.php template file. That's it because your index, pages, archives are all ok so whatever template most likely single.php needs to be edited.

People are also looking for solutions to the problem: php - shortcut to add stylesheets to symfony2/twig


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.