Hey y’all! Is there some way to bulk update non-product templates, like pages, blogs, and articles? I haven’t been able to find any guides or tools that weren’t for products only. I Googled, scoured the Shopify App Library, even checked in with the dev Discord, but I’m turning up empty all around.
First, I know!
It was my bad for not making sure a version of the template existed in the new theme before switching from the old one (everything got reverted to “Default blog post”).
Second, I know!
I could just copy the custom template code into the “Default blog post” files and save time and effort. More than 700 blog posts is a LOT of clicking. (Yes, I’ve already done it once. Don’t judge me.
)
Hey there! Unfortunately, Shopify doesn’t provide a built-in bulk update tool for non-product templates.
Your best bet might be to use a custom script to update these via the Shopify API. It can automate the process and save you all that clicking.
1 Like
Matrixify might be able to do this as well through a spreadsheet workflow
See shopify-flow or a scriptable app like mechanic to build an automation through the api.
It’s not clear what your doing but if it’s to edit templates themselves and not resource-assignments and you can code use the shopify cli or themekit to pull down the theme and find&replace edit the code.
1 Like
Thanks for the suggestions! All I’m looking to do is resource reassignment – change a content type’s assigned template in bulk rather than one at a time. For this theme switch, I changed all the “Default blog post” Theme template selections on the Article edit page to “our-special-template.”
Flow might do what I need, but downloading and directly editing the files is something I hadn’t thought of! I’m extremely comfortable with Liquid and could change things this way in just a few minutes.