Jump to content

Change theme via script?


This topic is 3483 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I'm pretty sure I already know the answer to this, but thought I'd ask anyways since I wasn't able to Google an answer...

 

Is there a way to switch between different themes using a script? Specifically without duplicating a layout, changing the theme, and switching between the two layouts?

Link to comment
Share on other sites

Your suspicions were correct - you cannot change theme via script.  Scripts work at the browse level and themes are layout-level.  I sure wish we could!!  :-)


In addition, it is best to keep the number of themes to minimum (1 maybe 2).  When you use a theme, all elements are loaded whether they are used or not.

  • Like 1
Link to comment
Share on other sites

I suppose you could use conditional formatting and globals, and cut a paste layout elements all over the shop, but I suppose that's exactly what you were trying to avoid...

  • Like 1
Link to comment
Share on other sites

This topic is 3483 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.