Althernative Theme Switcher make user able to switch the theme of your blog.
其他主题切换器使用户能够切换博客的主题。 p>
Admins can select which theme can be selected, and users can choose betwteen those themes and display it !
管理员可以选择可以选择的主题,用户可以在其中选择十一个主题并显示它! p>
About switchable themes
关于可切换主题 h3>
There are two kinds of switchable theme.
有两种可切换主题。
First, you have two themes under your wp-content/themes directory with the same layout !
首先,您在wp-content / themes目录下有两个主题,它们的布局相同!
Then, you can choose in your admin these themes.
然后,您可以在管理员中选择这些主题。 p>
Second, you have one theme and you want to switch only few elements in your current theme.
第二,您有一个主题,并且只想在当前主题中切换几个元素。
To do this, you can make an alternative theme.
为此,您可以选择其他主题。
Create a directory altThemes in your theme directory and a subdirectory for each alternative theme.
在主题目录中创建一个目录altThemes,并为每个替代主题创建一个子目录。
Keep in mind that the name of the directory will be the name of the subtheme.
请记住,目录名称将是子主题的名称。
Finally, create a style.css under your alternative theme and place your css rules insides.
最后,在您的其他主题下创建一个style.css,然后将css规则放入其中。 p>
Do not forget that if the rules you want to switch are also defined in mainTheme/style.css,
不要忘记,如果要切换的规则也在mainTheme / style.css中定义,
you may need to add the !important rule at the end of your alternative css rules.
您可能需要在替代CSS规则的末尾添加!important规则。 p>
Enjoy !
享受! p>