Krusty Plugstyles

This is the first WordPress plugin I’ve ever released. I called it Krusty Plugstyles because I’m Krusty Ruffle, and this plugin can be used to style plugins that don’t match your sites theme. It can also be used to tweak the styles for your theme, and is nice for overriding the styles that a lot of plugins include by default.

This plugin also works well with the Krusty MSIE Body Classes plugin!

After this plugin is activated it will check the current themes root directory for the existence of a file called ‘tweaks.css’, if this file is found then it will be linked in the head of your public facing pages. You can edit the tweaks.css file with your custom css by using any text editor and uploading the file, or you can use click the themes.css link on the theme editor page in the WordPress admin area, (this page may be found under ‘design’ in WordPress 2.6, or by clicking the ‘editor’ link under ‘appearance’ on the admin sidebar in WordPress 2.7.)

Note: I would like to thank everybody on the WP-hackers mailing list who helped me figure this out. If anyone is interested they can read the archive of the conversation at www.nabble.com

Installation:

This plugin will work with both WordPress and WordPress MU.

To install in WordPress:

  1. Download the plugin.
  2. Unzip the krusty-plugstyles.zip file.
  3. Upload the ‘krusty-plugstyles’ directory to the ‘/wp-content/plugins/’ directory on your server
  4. Activate the plugin through the ‘Plugins’ menu in WordPress.
  5. Create and edit a file called ‘tweaks.css’ in your themes root directory.

To install in WordPress MU:

If you are using WordPress MU you have two options for installing this plugin. You can do it the same as you would in WordPress, which has the disadvantage of forcing manual activation on all blogs, or, you can follow these instructions:

  1. Download the plugin.
  2. Unzip the krusty-plugstyles.zip file.
  3. Upload the ‘krusty-plugstyles’ directory to the ‘/wp-content/mu-plugins/’ directory on your server
  4. No activation is needed when using this method.
  5. Create and edit a file called ‘tweaks.css’ in your themes root directory.

The main disadvantage to this method is that WordPress will not notify you when the plugin is updated.

Frequently Asked Questions:

  1. Can this plugin be used with more than one theme?
    Yes, you just need to make a tweaks.css file in the root directory of any/all themes you want to tweak.
  2. Will this plugin work with plugins that allow users to pick their own themes?
    I’ve only tested it with Theme Switcher Reloaded, but it worked beautifully. I would imagine that it should work with others as well.

Change Log:

Version 1.00:

  • This was the initial release version of Krusty Plugstyles.

Version 1.1.0:

  • Added a workaround to avoid deletion of tweaks.css in directories of themes being automatically updated with WordPress 2.7 automatic theme update feature.
  • Minor corrections and additions to the readme.txt file

If you have other questions or comments feel free to leave a message in the comments on this page, or use the contact form to send me an email.

Post a Comment

Your email is never shared.