This WordPress plugin allows site visitors to change the active style in the K2 theme.
No, the K2 Style Switcher is completely self contained, no changes are required to the K2 core files
Base styles are activated on the K2 admin panel, these styles are applied to the site in addition to either the default selectable style or one that the site visitor has chosen. Base styles are intended to be used to add any snippets of CSS that should be loaded in all cases, thus saving the administrator from having to add these CSS snippets to each of the selectable styles.
Selectable styles are activated on the K2 Style Switcher admin panel, these are the styles that the site visitors can choose from. The default selectable style chosen on the K2 Style Switcher admin panel is applied to the site before the site visitor chooses a different selectable style. Note that a K2 style cannot be both a base style and a selectable style at once. If it is chosen as a base style on the K2 admin panel then it will disappear from the K2 Style Switcher admin panel.
If K2 is not the active theme then the plugin does not instantiate itself and will not appear in the administration area or on the site. Make sure that K2 is the active theme.
Yes. When the page loads the selected style is stored in the PHP session variables as if the user had selected it using the style picker.
No. The style specified in the custom field will only be used for the post or page that the custom field is set for. The style for the rest of the site will be selected using the normal logic.
The K2 Style Switcher relies on various options set by K2. For it to function correctly please make sure that the latest versions of K2 and WordPress are installed. If you are still having problems then you can ask questions, leave comments or find more information at the plugin's homepage: K2 Style Switcher
The project is now hosted on github.com. Just fork the project and send me a pull request.
Requires: 2.8 or higher
Compatible up to: 2.9.2
Last Updated: 7 years ago
Active Installs: 10+
Got something to say? Need help?