How can I duplicate a sidebar categories block on my website?

maja96
New Member
4 0 0

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?

2305B9AE-7D3F-4316-9F9D-DD3EBEC0701D.png

Replies 7 (7)

gina-gregory
Shopify Expert
742 51 211

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.

maja96
New Member
4 0 0

How can I update my collection template to include it right under the existing one?

gina-gregory
Shopify Expert
742 51 211

Find where the original one is in the code and make a new line like this after it:

{% section 'your-new-section-filename' %}

 

maja96
New Member
4 0 0

Here?

Sidebartop is original, sidebar categories is copy.

DB2DF954-99A9-4780-BCB8-A7D031A72FA2.png

gina-gregory
Shopify Expert
742 51 211

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

 

maja96
New Member
4 0 0

Dear @gina-gregory THANK YOU THANK YOU THANK YOU ❤️ You’re the BEST!

gina-gregory
Shopify Expert
742 51 211

You're welcome. Please consider marking this as solved.