Hi there!
Can you tell me what is the best way to not display the sidebar and to make the page full width on the posts within certain categories, but not the posts in others? Would it be better to use a custom post template or custom CSS, and can you provide the code to do whatever is best?
Thanks!
Hi there,
Thanks for writing around! You can do this with custom css, first get the category class using Chrome’s developer tool (see screenshot)
Then use the following code to hide the sidebar and making the content full width:
.category-cars .x-main {
width: 100%;
}
.category-cars .x-sidebar {
display: none;
}
Hope this helps!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.