Full width content page

Hello, I hided all blocks on the right side of the page: ‘search’, ‘archive’, ‘last posts’ ecc … links.
Now I want the content page to be 100% width.
How can I do that?

Hi,

How do you hide the right side? did you are using a CSS code?
If yes, here is to make the main content display 100%

#primary{
  width: 100% !important;
}

Best.

No, I did not use CSS code, I just removed widgets from Sidebar section.

I see, then you need to add this CSS code below:

#primary{
  width: 100% !important;
}
#secondary{
  display:none;
}

If it’s not working, please share your site URL here.

Best

Hi, I added the code to ‘Additional CSS’ section of the theme but it’s not working. The url is www.dobavitelj.si

Okay, please add this CSS code too:

.site-content {
    margin: 0;
}

And replace this:

#secondary{
  display:none;
}

with this:

.site-sidebar {
    display: none;
}

It’s working! Thank you so much!

1 Like