[wordpress插件] Alternative Theme Switcher替代主题切换器

wordpress 插件 文章 2020-02-16 22:20 530 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Althernative Theme Switcher make user able to switch the theme of your blog.

其他主题切换器使用户能够切换博客的主题。

Admins can select which theme can be selected, and users can choose betwteen those themes and display it !

管理员可以选择可以选择的主题,用户可以在其中选择十一个主题并显示它!

About switchable themes

关于可切换主题

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.

然后,您可以在管理员中选择这些主题。

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规则放入其中。

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规则。

Enjoy !

享受!

安装步骤

    1. Download the plugin
    2. 下载插件

    3. Copy the directory under your wp-content/plugins
    4. 将目录复制到您的wp-content / plugins下

    5. Enable the plugin in your admin pages
    6. 在管理页面中启用插件

    7. Configure the plugin
    8. 配置插件

    That’s all !

    仅此而已!

下载地址
https://downloads.wordpress.org/plugin/alternative-theme-switcher.0.1.1.zip
-EOF-

AI助手支持GPT4.0