MyCSS

77 comments · spacer

Latest version:
1.1
2008.04.18

MyCSS is a WordPress plugin that allows you to attach your personal CSS stylesheet to your blog, regardless of the theme you might be using. This is useful for users who want extra control over the presentation of individual blog entries by using self-defined CSS classes without worrying about compatibility issues when switching theme from one to another.

Another reason you might want to use this plugin is if your blog uses other plugins that require CSS styling. While some blog themes support certain plugins “out of the box”, you can style them yourself using MyCSS and make minimal changes as you switches themes since they are all in one place, i.e. my.css.

It is always a good idea to not heavily modify a blog theme’s original CSS whenever possible (to make future theme update easier). Any extra CSS classes you added yourself can be put into MyCSS editor, which will definitely save you time managing your blog’s presentation in the long run.

The closest plugin I found that implements a similar function is “Fixed Stylesheet – Quick n’ Dirty Hack”. However, what is lacking in this dirty hack is the convenience of editing the custom stylesheet. Using this hack, one has to edit the stylesheet using a text editor, upload it to your blog directory via FTP, then only will any changes take place.

MyCSS plugin takes an extra step towards better organizing your custom stylesheet by adding a new panel under “Presentation” menu that allows you to do instant changes to your stylesheet easily. ;)

For your information, this site is powered by MyCSS and you can take a look at the stylesheet to have a feel how would one utilize it.

spacer
See MyCSS in action

For advanced users…
If you make heavy use of “Edit CSS” feature found in Firefox’s Web Developer Toolbar while stying your WordPress blogs, then you’ll definitely increase your productivity by having an extra tab opened with MyCSS and copy desired CSS changes directly from Edit CSS panel into MyCSS textbox. Save, refresh, done! :D

Features

  • imports user-defined stylesheet, independent of blog theme used
  • provides convenient stylesheet editor in admin panel for fast editing
  • does not write to your WordPress database

Usage

Once activated, you can either upload your self-defined stylesheet to “wp-content/plugins/MyCSS/my.css” or copy and paste your CSS codes into the editor under “Presentation” menu.

Make sure “my.css” is writable on your server, a “644″ permission should suffice. Below’s the message you’ll see if “my.css” is not writable:

spacer
my.css is not writable

Similarly, if “my.css” cannot be found, you will get the following #68 of mycss.php – the result looks like this on mine:

rows=”25″ cols=”120″ tabindex=”1″

Reply

spacer Steve Murphy November 14, 2007 at 1:44 am

Fantastic plug-in – thanks for your work!

I’m preparing to go live with a WP-based site that will replace my current (and increasingly stale) static site, and have been busy customizing my chosen theme’s css. And then it occurred to me that it would all be wiped out if I installed the next update to the theme.

Your recommendations regarding Firefox and Web Developer are spot on too.

If I may, here’s a recommendation to those like me who had already done significant work modifying a theme’s style.css page: download a program called Beyond Compare by Scootersoftware. It has been invaluable in identifying and transferring the changes I already made in the theme’s CSS to your plugin, as well as tackling the task of identifying and logging changes to other theme files (mostly php) that I will have to repeat manually upon an update. Very powerful and easy to use…

best,

steve

Reply

spacer BGH Quiz spacer November 4, 2007 at 10:26 pm

Awesome plugin, thank you a lot. It makes things a lot easier. I like switching themes too much.

Reply

spacer cokar October 28, 2007 at 5:02 am

Thank you!

Reply

spacer 心想事成的秘密 spacer October 15, 2007 at 10:21 am

Does it support wp2.3?

Reply

spacer pyko August 28, 2007 at 9:08 am

hi eyn!
thanks for the great plugin :) i had *just* started editing the core CSS file (and felt horrible doing it) then found your plugin, which solves everything! No more guilty feeling of ‘hacking’ the CSS file anymore :)

thanks heaps!!
pyko

Reply

spacer Martino
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.