Liquid, JavaScript, themes, sales channels
Hello,
I want to add (duplicate) one more Sidebar categories block (with a different menu) below this one and before the Sidebar bottom (Bestsellers) block.
How can I do this?
It looks like a theme section. Find the existing one in your theme code, in the Sections folder, copy the code inside, and make a new section with the code you copied. Then update your collection template to include it right under the existing one.
How can I update my collection template to include it right under the existing one?
Find where the original one is in the code and make a new line like this after it:
{% section 'your-new-section-filename' %}
Here?
Sidebartop is original, sidebar categories is copy.
No, you need to look in the collection template for a line that looks like this:
{% section 'sidebartop' %}
and add your new section after it:
{% section 'sidebartop' %}
{% section 'sidebarcattegories' %}
You're welcome. Please consider marking this as solved.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024