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

Re: How can I remove the shopify sidebar on the blog post page only

Solved

How can I remove the shopify sidebar on the blog post page only

CW5
Pathfinder
95 5 11

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?

 

 

 

 

 

 

Accepted Solutions (2)
CW5
Pathfinder
95 5 11

This is an accepted solution.

Perfect! Thanks very much @GemPages .

 

 

View solution in original post

CW5
Pathfinder
95 5 11

This is an accepted solution.

Ok, this worked. Thanks @KetanKumar  for all your assistance. Cheers!

View solution in original post

Replies 9 (9)

GemPages
Shopify Partner
5625 1262 1292

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

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
CW5
Pathfinder
95 5 11

KetanKumar
Shopify Partner
37635 3670 12168

@CW5 

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%;
}

KetanKumar_0-1673320582368.png

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
CW5
Pathfinder
95 5 11

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.

 

CW5
Pathfinder
95 5 11

This is an accepted solution.

Ok, this worked. Thanks @KetanKumar  for all your assistance. Cheers!

GemPages
Shopify Partner
5625 1262 1292

Hello @CW5 ,

 

You can follow these steps: 
1. Go to Online Store->Theme->Edit code

GemPages_0-1673320989325.png

2. Open your theme.liquid file, paste the below code before </body>

GemPages_1-1673321015693.png

  <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

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
CW5
Pathfinder
95 5 11

This is an accepted solution.

Perfect! Thanks very much @GemPages .

 

 

CW5
Pathfinder
95 5 11

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.

 

KetanKumar
Shopify Partner
37635 3670 12168

@CW5 

yes, please add this code

.template-article .normal-sidebar {
    display: none;
}
.template-article .normal_main_content.col-md-9 {
    width: 100%;
}
If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing