Solved

assigning templates to pages

nihanmubashshir
Visitor
3 0 0

Hello,
I have created  a new template based on "page". But when I go to assign it, I don't see my created template in the drop-down menu. Here is screenshot:Screenshot from 2021-12-19 23-30-32.png
Please let me know what I am doing wrong. 
thanks

Accepted Solution (1)

PaulNewton
Shopify Partner
6339 579 1349

This is an accepted solution.

Make sure the alternate template was created in the /templates folder and not as a snippet or section somehow.

Alternative templates from unpublished themes will not show.

 

To preview and develop alternate templates, in unpublished themes, on the frontend use the ?view parameter in tandem with the normal ?preview_theme_id used to preview unpublished themes.

I.e. for page.customname.liquid would mean shopify.com/pages/page-handle?preview_theme_id=1234567&view=customname

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


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

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


View solution in original post

Replies 3 (3)

PaulNewton
Shopify Partner
6339 579 1349

This is an accepted solution.

Make sure the alternate template was created in the /templates folder and not as a snippet or section somehow.

Alternative templates from unpublished themes will not show.

 

To preview and develop alternate templates, in unpublished themes, on the frontend use the ?view parameter in tandem with the normal ?preview_theme_id used to preview unpublished themes.

I.e. for page.customname.liquid would mean shopify.com/pages/page-handle?preview_theme_id=1234567&view=customname

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


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

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


nihanmubashshir
Visitor
3 0 0

Thanks,
Basically, I am using a git subtree and the dev branch I am currently working on is not the published one.

That's why it wasn't showing.

Tucker_diamond
Visitor
1 0 0

Hello sir, how are you doing,

I have go through your post and I am fully happy to help you but I will like to first see your store link .