Bulk Change Non-Product Templates

Solved

Bulk Change Non-Product Templates

PartPurple
Shopify Partner
21 1 1

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. 🙃)

Accepted Solution (1)

PaulNewton
Shopify Partner
7721 678 1619

This is an accepted solution.

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. 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Replies 3 (3)

EcomGraduates
Shopify Partner
795 68 114

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. 


 If this fixed your issue, likes and accepting as a solution are highly appreciated
|  Build an online presence with our custom-built Shopify Theme: EcomifyTheme
|  Check out our reviews: Trustpilot Reviews
|  We are Shopify Partners: EcomGraduates Shopify Partner



PaulNewton
Shopify Partner
7721 678 1619

This is an accepted solution.

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. 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


PartPurple
Shopify Partner
21 1 1

template.jpgThanks 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.