All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
We want the sidebar removed only on the blog post page while keep it for other pages.
We had tried the option of adding the following code in theme.scss.liquid file but that is not working
.blog_sidebar_part {
display: none !important;
}
Any suggestions?
Solved! Go to the solution
This is an accepted solution.
This is an accepted solution.
Ok, this worked. Thanks @KetanKumar for all your assistance. Cheers!
Hello @CW5
Can you give me your Store URL( with pass if your store password is enabled) so I can check it for you?
Kind & Best regards,
GemPages Support Team
yes, please add this code
1. Go to Online Store->Theme->Edit code
2. Asset->/includes.css ->paste below code at the bottom of the file.
.template-blog .normal-sidebar {
display: none;
}
.template-blog .normal_main_content.col-md-9 {
width: 100%;
}
Dear Ketan Kumar,
Thanks for your input. I did what you said. While the sidebar has been removed from the Blogs index page that you have shared a screenshot, the sidebar on the individual blog post page is still there.
This is an accepted solution.
Ok, this worked. Thanks @KetanKumar for all your assistance. Cheers!
Hello @CW5 ,
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
<style>
.col-md-3.normal-sidebar.sidebar_content {
display: none !important;
}
.normal_main_content.col-md-9 {
width: 100% !important;
}
</style>
<style>
.col-md-3.normal-sidebar.sidebar_content {
display: none !important;
}
.normal_main_content.col-md-9 {
width: 100% !important;
}
</style>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Sorry, I spoke too soon. While it removed the sidebar from the Blog pages, it also removed the sidebar from all other pages, like Product page, Collections page etc. That is NOT what i want. So this is not an accepted solution.
yes, please add this code
.template-article .normal-sidebar {
display: none;
}
.template-article .normal_main_content.col-md-9 {
width: 100%;
}