No sidebar on posts
-
Reading the topics here I saw that the issue of a post without sidebar came up, but in the end it proved to be about the page without a sidebar. What would be the solution for a post without sidebar?
-
Hi there – could you please provide a link to your site? Do you want to hide the sidebar on all posts, or just a specific one?
Right now I am testing canard, I don’t have it installed permanently. I would be interrested to have just some posts with the sidebar hidden, not to remove it permanently.
You can hide the sidebar on specific posts by adding some custom CSS in this format:
.postid-31 .widget-area, .postid-36 .widget-area { display: none; }Add a new selector for each post you’re targetting. You can find the post ID in the browser’s source on the
bodytag (31 and 36 are just examples) or by looking in the adress bar when you’re editing the post. You can add as many posts as you like.Don’t edit the theme files directly, otherwise your changes will be overwritten every time the theme is updated.
An easy way to add custom CSS is to install the Jetpack plugin and activate the Custom CSS module. You’ll then add your custom CSS in the new stylesheet editor that’ll appear in your dashboard, under Appearance > Edit CSS. You could also install a standalone custom CSS plugin if you prefer.
Thanks! I worked like a charm.
-
This reply was modified 9 years, 8 months ago by
georgedamian78.
Great! I’ll mark this thread as resolved but feel free to start a new one if you need help with anything else.
-
This reply was modified 9 years, 8 months ago by
The topic ‘No sidebar on posts’ is closed to new replies.
