How to remove sidebar only from single blog post pages

Hello,

we are trying to remove the sidebar only from single blog post pages, but not from main blog posts page.
Here on the main blog post page we would like to keep the sidebar as it is:
https://naucimo.se/novice/

But on the single blog post, we would like to remove it. For example here:
https://naucimo.se/2023/11/09/ucinkoviti-triki-za-excel-poglobljen-vodic/

We tried already posted solutions, but none of them worked as desired. Currently we added next css code, which partly removes the sidebar from single blog post.

.single-post aside.x-sidebar {
display: none !important;
}
.single-post {
padding-right: 0 !important;
}

This is how it looks now on single blog post:


Kindly asking for help in this matter.

Thanks,
Naucimo.se

Hey @uroscarman,

Thanks for reaching out!

You can set the body of your single blog page to a background white so that it will not look on your screenshot. Just use this CSS code:

body.single-post {
	background-color: #ffffff;
}

Please note that custom CSS code is outside the scope of our support. Issues that might arise from the use of custom CSS code and further enhancements should be directed to a third-party developer or you can avail One where we can answer questions outside of the features of our theme.

Hope that helps and thank you for understanding.

Hello @marc_a,

thank you so much! The provided solution works perfectly.

Kind regards!

Hi @uroscarman,

Glad that we are able to help you.

Thanks

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