Title: Plugin Dev &#8211; stop plugin from using theme CSS
Last modified: January 24, 2024

---

# Plugin Dev – stop plugin from using theme CSS

 *  [The Open Directory Project 2.Pro](https://wordpress.org/support/users/resynergy/)
 * (@resynergy)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-dev-stop-plugin-from-using-theme-css/)
 * I’m developing a plugin but it displays differently on different themes. How 
   can I make the plugin page not inherit the themes css

Viewing 1 replies (of 1 total)

 *  [tugbucket](https://wordpress.org/support/users/tugbucket/)
 * (@tugbucket)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-dev-stop-plugin-from-using-theme-css/#post-17370930)
 * Not really enough information for a fool-proof answer but for starters, make 
   the plugin CSS plugin specific. So instead of writing for example:
 *     ```wp-block-code
       ul { color: red; }
       li { list-style: square; }
       ```
   
 * Write it more like:
 *     ```wp-block-code
       #your-plugin ul { color: red; }
       #your-plugin li { list-style: square; }
       ```
   
 * You might need to be even more specific than that though.

Viewing 1 replies (of 1 total)

The topic ‘Plugin Dev – stop plugin from using theme CSS’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [tugbucket](https://wordpress.org/support/users/tugbucket/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-dev-stop-plugin-from-using-theme-css/#post-17370930)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
