$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>How to test another theme in a live WordPress website instead of live preview?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How to test another theme in a live WordPress website instead of live preview?

matteradmin8PV0评论

I want to implement a new theme called Hepta on my current website, but when I test it using the live preview, it shows me limited content and features as it imports most of the contents from the active theme. Hence, I added few core plugins for that theme and also added theme import plugin. But, my concern is that if I activate the theme import plugin, the theme which is currently live(the older theme) might be affected, which will end up affecting the live website. So, I want to test the new theme and make it my primary theme once it is ready. How should I do this?

I want to implement a new theme called Hepta on my current website, but when I test it using the live preview, it shows me limited content and features as it imports most of the contents from the active theme. Hence, I added few core plugins for that theme and also added theme import plugin. But, my concern is that if I activate the theme import plugin, the theme which is currently live(the older theme) might be affected, which will end up affecting the live website. So, I want to test the new theme and make it my primary theme once it is ready. How should I do this?

Share Improve this question edited Oct 30, 2018 at 1:02 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Oct 29, 2018 at 22:27 Smit SanghviSmit Sanghvi 31 bronze badge 1
  • So I believe that this is possible with Health Check plugin. I tried to test it now, however, and it malfunctioned. But maybe it was an isolated issue. Still, really the best way to do this is by creating a staging environment – Gonçalo Figueiredo Commented Oct 29, 2018 at 23:07
Add a comment  | 

1 Answer 1

Reset to default 0

To try new theme over live wordpress site you need to duplicate the site in staging. There are many ways to do that:

  • Manually: create a sub-domain (ex: staging.domain) copy files and DB there and do your changes there after tested well migrate them to live.
  • Using plugin: A plugin named WP-Staging may help you the manual process.
  • You can use wp-engine service, which help you manage staging things.

Hope one of the above way be helpful for you. A help link to check.

Post a comment

comment list (0)

  1. No comments so far