Removing sidebar from 5.1.4

Hello, I’m trying to remove the wordpress sidebar from my blog post pages using the following code:

@media (max-width: 767px) {.x-sidebar {display: none;}}

However after clearing the cache and cdn (and verifying the code is there) i’m not getting the expected result … not sure if this is a css error or bug?

Hello @fxground,

Thanks for writing to us.

In case you are trying to hide the sidebar for the small screen you can add this custom CSS code.

@media (max-width: 767px){
aside.x-sidebar.left {
display: none;
}
} 

If you want to hide the sidebar to all the screen sizes you need to remove the media query.

aside.x-sidebar.left {
display: none;
}

The purpose of providing custom CSS is to show you how to add CSS code to your site. Writing custom CSS is outside the scope of our theme support. If you need more customization, you need to learn CSS and learn how to use the browser’s element inspector.In case if you have no idea about coding you can subscribe to One where customization questions are answered.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.