Persistent Styles Plugin

Have you ever updated your theme by replacing, or simply overwriting your old theme files? Well, when we edit themes we tend to add many custom styles that are supra-theme. Maybe there are styles for a plugin (such as my Post Information Plugin) that you want there regardless of what theme you have selected. Well, I have the fix for you.

  1. Download the plugin
  2. Activate
  3. Then your styles under Presentation » Persistent Styles.

I should warn you that the style sheet will be printed after your primary sheet. I would advise on only adding non theme dependent styles, because it will throw off your CSS inheritance.

Have fun!

30 Responses

  1. Ajay February 6, 2007 / 4:35 pm

    Hey… good plugin. I’ve been using a seperate stylesheet with specific styles with all my themes.

  2. Joe February 6, 2007 / 4:52 pm

    When I download from your link, I get the Post Information plugin, not the Persistent Styles plugin.

  3. Chris Poteet February 6, 2007 / 4:59 pm

    Joe: Thanks. I fixed it.

  4. Enid February 7, 2007 / 11:38 pm

    i don’t quite understand what to do with this. i’ve already made modifications to Sidebar.php, the Main Index Template, Single Page, and others. how do i use this?

  5. Chris Poteet February 8, 2007 / 2:14 am

    @Enid: This plugin is not for those pages. Here’s a scenario. Say you have a CSS style for some item in your sidebar, and you want it to remain regardless of what theme you’re using. You used to have to find those styles in the theme CSS and transport them over. Now you can “set it and forget it,” because the style sheet will be used regardless of what theme you have. Make sense?

  6. ovizii March 7, 2007 / 2:22 pm

    I am trying to implement this plugin with wpmu. that means some changes are needed, like:


    some other stuff needs to be changed, I’ll mail you the whole thing when ready, but meanwhile I need to figure out how to automatically create the persistent.css file in each users director :-) (the path I gave above)

    AND I am curious if there are security issues involved? Could the user introduce php or javascrip or anything else that could be dangerous? How does the file get parsed?


  7. Chris Poteet March 8, 2007 / 11:52 pm

    Awesome! Please do send me whatever changes you come to. About automatically creating it…I’m not quite sure. Do you allow them in WPMU to edit the CSS?

    Drop me a line on the contact form, and we can work further on it.

  8. ovizii March 9, 2007 / 1:08 pm

    I dropped you “several lines” – hope they make sense to you :-) waiting for a reply – bye

  9. Martin Cleaver July 11, 2007 / 5:00 pm

    Did you respond to ovizii’s questions? I also use wpmu.

    Thanks, M.

  10. Fab October 11, 2007 / 12:27 am

    Excellent plugin! Thanks.

  11. Chris Poteet November 6, 2007 / 3:35 pm

    @Christoph: Yes, they do the same thing. I found out about that plugin after I did mine.

  12. pcal March 26, 2008 / 2:43 am

    very handy, thanks

  13. baron May 13, 2008 / 3:58 pm

    hi. Thanks for plugin



  14. Marcel October 21, 2010 / 8:56 am

    Wouldn’t it be an idea to store the extra stylesheet in the wp-content/uploads directory so you could auto-update the plugin?

    • Chris Poteet October 21, 2010 / 6:46 pm

      I would if I could automate the uploading of files through a plugin to another directory. As far as I know that’s not possible.

Comments are closed. If you have a question please contact me.