Jump to content
adamjedgar

script to change theme on a regular basis from list

Recommended Posts

is it possible for a script to be able to automatically change the client area theme on a regular basis from the list of available themes? (like google does with its logo on it chrome browser)

 

Im mainly want to be able to change the colors more than anything else.

 

if so, how would i do this?

Share this post


Link to post
Share on other sites

You can create a plugin that registers an automation task. It can run automatically by cron at whatever interval or at any time frame you want.

When your plugin's automation task is run, you can change the theme for the company. Take a look at the source documentation for Themes::change regarding changing the theme. There are also methods for fetching the available themes so that you can pick one from the list to change it to.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...