727 votes
1 answers
shopify - Using two different blog listing page templates for the two different blogs in our shop
Solution:
What you need to do is:
- in admin/themes click on the three dots and edit the code
- in the left pane create a new template in the templates directory
- select blog as template and give it a name, e.g. second_blog
- this will create a new template file blog.second_blog.json
- go back to admin: /admin/blogs
- select the blog to which you want to assign the new template
- on the bottom right in the theme template dropdown, select the template second_blog
- In the theme editor select the new template and make the desired changes
You now have two blog templates which you can design individually
Undefined asked
183
votes
Answer
Solution:
What you need to do is:
- in admin/themes click on the three dots and edit the code
- in the left pane create a new template in the templates directory
- select blog as template and give it a name, e.g. second_blog
- this will create a new template file blog.second_blog.json
- go back to admin: /admin/blogs
- select the blog to which you want to assign the new template
- on the bottom right in the theme template dropdown, select the template second_blog
- In the theme editor select the new template and make the desired changes
- You now have two blog templates which you can design individually
The process is documented here (https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates).
Undefined answered
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.