How to link to all blogs on a multiple blog site?

Hi

Is it possible so when I click on the ‘BLOG’ link in header it takes you to the blog page which shows content from all multiple blogs rather than just the 1 blog it forces you to select in the back end?

I am migrating from Wix to Shopify currently and like the flexibility Shopify offers in being able to have multiple blogs.

Thus I wish to use a blog for New Releases, one for Tips and Tricks, one for Reviews and so on. I can very helpfully then have these on the front page as sections eg ‘Reviews’ and ‘New Releases’ etc but I also want to mirror my existing sites functionality so when you click on the link BLOG from the header menu it takes you to ALL blogs rather then forcing you to only link to one blog.

Running Debut theme.

Thanks in advance.

1 Like

Any one with experience on this? I cannot continue migration until I can overcome this or find an alternative solution.

TIA

which type of migration did you choose?
as far as i know, automated migration services can move blogs across platforms. try contacting cart2cart support. they usually help me out. maybe the guys will come up with some kind of solution

Hi Sarah.

Manual migration. I rebuilt my WIx shop in Shopify from the ground up.

I am now just at the final stage of transferring blogs over manually so whilst I appreciate your input your solution suggestion is not relevant to me here. And I’m not sure if you understand my requirements specifically.

Shopify allows multiple blogs for different content. But the heade/footer menu selection ‘BLOG’ force you to just choose one of your blogs in the backend. Thus if I have say 3 blogs, Reviews, New Releases, Free Stuff, if I click BLOG it will only allow that link to take me to one of those.

What I really need is some sort of abilty I can show all blog content from follwing the BLOG link otherwise my visitors may be put off when they only see a handful of posts about ‘Reviews’ rather than ALL blog posts from the 3 blogs present.

Hope that makes sense.

Hi, @Stakeholder ,

Hank here from Shopify!

Great work migrating your store, this can be a daunting task, but it sounds like you have mastered this.

What you have mentioned is correct, in the admin, at least natively you can only link to the one blog via the menu options. However, you can link the other blogs via the nested menu (drop-down) option in your navigation.

For your query though, it is possible to link to all blogs, however, it takes a bit more than just a standard URL.

There is the option of using one of the page-building apps with some of them specific to building pages for blog posts.

Then the other route is that if you share your store URL, hopefully, someone with more technical skills in the community will come across this and be able to add some value to you here, but if not, your best bet might be to reach out to one of our Shopify Experts, who you can hire to do almost any custom work on your store.

If you were to reach out to them about this query, they would be able to resolve this issue for you.

Let me know if you have any other questions!

All the best,

Hank

You will need to code it. There is no work around.

  • Go to Online Store ->Themes->Actions->Edit Code.
  • You should see multiple liquid files categorized, go under “Templates”->Choose “Add a new template”->Create a new template for ‘Page’ called ‘all-blog’.

  • The page you just created will open in an editor. Copy and paste the below code just after the line {{ page.content }}. (Your page might have some different html content but this line will be present):

Note: Here blog1 and blog2 and blog3 are your blog handles. Go to your respective blog pages and copy the part after the last ‘/’. Like:
step4.png

 {% assign blog_handles = "blog1,blog2,blog3" | split: "," %}

   {% for handle in blog_handles %}

        {% for article in blogs[handle].articles %}

               <h2><a href="{{ article.url }}">{{ article.title }}</a></h2>
         {% endfor %}

  {% endfor %}

  • Now, go to page → Add new page → Put title whatever you like, I put it ‘Blog’ → Choose template suffix on the right side as ‘page.all-blog’. Save it.

Go view the page you just created. It will display your article’s heading and clicking them will take you to the articles. (Article is alias for blog posts in Shopify).

This is just an basic example. I guess you need to display a lot more than just article headings. You will need to modify the html in page.all-blog.liquid file. I used ‘article.title’ and ‘article.url’ here, there is a lot more you can use. Read more article object properties here: https://shopify.dev/docs/themes/liquid/reference/objects/article

2 Likes

Hank just to report back, I was able to make the the nested menu item pointing to individual blogs work for me so I appreciate your suggestion. Happy user now here having gone live last night on Shopify from Wix.

Cheers

1 Like

Hi Hackinet,

Just wanted to acknowledge your post as was immensely helpful. Thank you.

That is so awesome to hear, and you are very welcome, my friend!

Do reach back out to us if you need anything, stay safe, and have an awesome day!

Hello!

I just tried this method of creating a new template and adding my blog handles but it didn’t work. Do you have any other idea on how I can do it? I’m on the Debut theme..

Thanks so much!

Hi there @FrannyC !

Don here from Shopify.

I’m here today helping out my good friend Hank with some posts in our Community forum.

If the workarounds suggested above don’t work for you, I’d consider trying a page-building app from our store which might work for your needs.

Otherwise, you may like to have a custom solution created for you by a Shopify Expert.

Take a while to browse the above choices and reach out to some of the available options to see what might be right for your needs.

Of course, if there is anything else I can help with please just let me know!

Regards,

Don

This does not work.

When you open a new template you just get:

{
“sections”: {},
“order”:
}

So frustrating.

Thank you anyway.

Show More

Does anyone have an update on this?