Plugin Style Settings – Database Or CSS? ![rw-book-cover]() 🔗 **Source:** [Plugin Style Settings – Database Or CSS?](https://wptavern.com/plugin-style-settings-database-or-css) > [!note]+ Document Notes > --- > tags: [css, database, plugins, settings, style, wp-tavern-archive, wp-tavern-2009] > author: Jeff Chandler > source: WP Tavern > reference: https://wptavern.com/plugin-style-settings-database-or-css > date created: 2026-04-17 13:29 > --- > # Plugin Style Settings – Database Or CSS? > ## 📝 Summary > - Jeff Chandler raises the question of whether WordPress plugins should store styling information in CSS files or in the database. The issue stems from frustration with plugins like WP-PageNavi that overwrite custom CSS changes during updates. > - This matters because it affects the user experience for WordPress site administrators who customize plugin styles to match their themes; storing styles in the database could eliminate the need for manual CSS editing. > - Key plugins mentioned include WP-PageNavi by Lester Chen and WP-Polls, which demonstrates storing color options in the database via the plugin options page. > - The core question is whether database storage of plugin styles is preferable to CSS files, considering the tradeoffs between ease of use and potential performance implications. > ## 💬 Comments (0) > No comments. > --- Today I wanted to talk about a problem which Justin Tadlock will be covering in more detail at some point in the future and that is, plugins which contain a CSS file to edit their style. Don’t get me wrong, Lester Chen is a great plugin author, but I find it increasingly annoying that after I make the necessary styling changes to his WP-PageNavi plugin so that it blends in with my theme, I overwrite those changes once I upgrade his plugin. [![wppolloptions](https://www.wptavern.com/wp-content/uploads/2009/04/wppolloptions-300x212.png "wppolloptions")](https://www.wptavern.com/wp-content/uploads/2009/04/wppolloptions.png) Based on what I’ve been told, it’s fairly easy to add a plugins stylesheet to your themes CSS file so that this sort of thing doesn’t happen. But, I wanted to raise the question if whether or not plugins should come with their own CSS file for editing or just store the styling information in the database so that end users don’t have to worry about messing around with the CSS in the first place? I’m pretty sure this is how Lester’s WP-Polls plugin works as I can define from within the plugin options page which colors the voting bars should be via hexadecimal color codes. What are the drawbacks to storing plugin style information in the database versus a CSS file? On the surface, seems like adding the style information right into the plugins options table in the database is A OK to do. Category: [WordPress](https://wptavern.com/category/wordpressorg)Tags: [css](https://wptavern.com/tag/css), [database](https://wptavern.com/tag/database), [Plugins](https://wptavern.com/tag/plugins), [settings](https://wptavern.com/tag/settings), [style](https://wptavern.com/tag/style), Plugin Style Settings – Database Or CSS?, Jeff Chandler, 01kpe7v1pjr0r2ndp10088h1a8.