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 to “Persistent Styles Plugin”

  1. Ajay

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

  2. Chris Poteet

    Thanks Ajay!

  3. Joe

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

  4. Chris Poteet

    Joe: Thanks. I fixed it.

  5. Enid

    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?

  6. Chris Poteet

    @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?

  7. ovizii

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

    SORRY MY CODE GOT EDITED OUT HERE, I CAN MAIL YOU THE CHANGES

    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?

    thx

  8. Chris Poteet

    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.

  9. ovizii

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

  10. Martin Cleaver

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

    Thanks, M.

  11. Chris Poteet

    @Martin: Yes, and his finished work is
    documented for download.

  12. Fab

    Excellent plugin! Thanks.

  13. Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 11/6

    […] Persistent Styles allows you to have styles that are supra-theme so you won’t lose them on upgrade/replacement of your theme. […]

  14. BlogBroker » WordPress Plugin Releases for 11/6

    […] Persistent Styles allows you to have styles that are supra-theme so you won’t lose them on upgrade/replacement of your theme. […]

  15. Christoph Voigt

    Sounds like it does exactly what MyCSS (http://www.channel-ai.com/blog/plugins/mycss/) does. No pun intended, but do we need two custom CSS plugins for WordPress that work independent of the used theme?

  16. Chris Poteet

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

  17. わーどぷれすっ! » Persistent Styles

    […] ダウンロード:Persistent Styles Plugin » Siolon […]

  18. 最新(11月)wordpress插件汇总(plugin) | 第九城市

    […] Persistent Styles allows you to have styles that are supra-theme so you won’t lose them on upgrade/replacement of your theme. […]

  19. WordPress Plugins Database » Plugin Details » Persistent Styles

    […] Visit […]

  20. Wordpress Update RSS » Blog Archive » Persistent Styles

    […] Visit […]

  21. pcal

    very handy, thanks

  22. pcal.net » Switched to Wordpress

    […] I highly recommend downloading the Persistent Styles Plugin so that you can non-destructively tweak wordpress […]

  23. baron

    hi. Thanks for plugin

    perfect.

    regards

  24. WordPress Plugin Releases – Blog Tipper – Come here for great tips

    […] Persistent Styles allows you to have styles that are supra-theme so you won’t lose them on upgrade/replacement of your theme. […]

  25. Hook » Blog Archive » 我的插件-Classics WP-Plugin for Novice![原创]

    […] Persistent Styles:This plugin allows you to have persistent styles regardless of the theme. 作者:Chris Poteet. […]

  26. WordPress plugins I use and how one made my blog faster | Geekality

    […] Persistent Styles, which enables me to do some adjustments to the site styles without messing with the actual theme styles. […]

  27. Marcel

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

    1. Chris Poteet

      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.

  28. Plugins: 2/06/2011 | Bad Bad Girl

    […] Persistent Styles – have CSS coding to add to over right, but not to edit in your coding? This is handy! […]

  29. WordPress Plugins for Blog Layout, Formating, and CSS Designs « Lorelle on WordPress

    […] Because those are in my posts, I want them to still work no matter which Theme I’m using. Persistent Styles WordPress Plugin and MyCSS WordPress Plugin will carry forward any CSS styles you want to keep, independent of the […]

Leave a Reply

Your email address will not be published. Required fields are marked *