WordPress Theme Preview

In the latest version of WordPress, it gives you the opportunity to preview what your site will look like using a different theme. You just simply click on the topic, it takes the screen, and you have the option to activate or close it (and return to the previous screen, which is grayed out in the background). I recently saw a similar technique used on several sites to display images.

I wonder what technologies / code do they use for this?

+4
source share
1 answer

This is open source - use the source, Luke.

Take a look at wp-admin / js / theme-preview.js

+5
source

Source: https://habr.com/ru/post/1276497/


All Articles