I am trying to get rid of Categories on the right side of my blog pages.
I see this in my code, but I don’t want to delete it because I am not proficient in coding.
{% include ‘blog-sidebar’ %}
One Shopify expert said they could delete it… but at the time I was working on a different solution
Anyone know how to edit / delete this code to get rid of the side categories?
On my site https://avocadotea.com/blogs/blog-1
Appreciate any help I can get.
1 Like
Hi there!
if you don’t want to remove its code then just place this in the css file
- Go to Online Store->Theme->Edit code
- Asset->/theme.css.liquid →
or use any file that you are using for css
.blog_sidebar_part {
display: none !important;
}
@avocadoleaftea
Yes, you can remove the following code.
{% include 'blog-sidebar' %}
OR you can add the following code at the bottom of your assets/style.css file.
.blog_sidebar {
display: none;
}
Hope this works.
Thanks!
I’ve tried using this solution, adding this code to theme.css.liquid, but cannot find that exact file in my Minimal theme.
I do have the file theme.scss.liquid, but adding the code to that file produces no change in the display.
The sidebar still shows.
Can someone tell me what I have missed, please?
I also just read that .scss files are going away, and only .css files will be used in the future. Could that be part of the problem?
Thanks!
.blog_sidebar_part {
display: none !important;
}