How remove the post widget area with css in wordpress Twenty Twelve Theme

With this wordpress theme you can choose page settings but you can not choose post settings.

Even if you remove the sidebar and set up the full screen pages, viewing the posts, you notice an empty space on the right where there was the sidebar.

I found the solution and decided to share it because I was not easy to find sites that clearly explain how to do it.

In fact, the solution is simple, just add on the wordpress customizator CSS handler the following code:

.site-content
{
width: 100%;
}

I hope this article has been useful. Remember that with this method, you will reduce your sidebar to a point where it becomes invisible. WordPress will nevertheless know that the sidebar exists and you may have little problems with some addons acting on templates.

Rispondi