Title: Overwriting WordPress dashicons default CSS
Last modified: April 5, 2022

---

# Overwriting WordPress dashicons default CSS

 *  Resolved [Timo](https://wordpress.org/support/users/worschtebrot/)
 * (@worschtebrot)
 * [4 years ago](https://wordpress.org/support/topic/overwriting-wordpress-dashicons-default-css/)
 * Hi,
 * In the file wp-analytify/assets/default/css/styles.css of your plugin CSS is 
   overwritten, which is part of the standard layout of WordPress and is used by
   all plugins. In this case you change the align of the dashicons with
 * .dashicons, .dashicons-before:before {
    vertical-align: middle; }
 * Can you please create your own CSS classes to customize the layout for your plugin?
   Then other plugins can use the default layout again and don’t have to follow 
   your customizations if your plugin is installed. Also, it would be great if your
   stylesheet file would only be loaded on admin pages where it is needed. 😉
 * Thanks

Viewing 1 replies (of 1 total)

 *  [Asad Shahbaz](https://wordpress.org/support/users/artisticasad/)
 * (@artisticasad)
 * [4 years ago](https://wordpress.org/support/topic/overwriting-wordpress-dashicons-default-css/#post-15547233)
 * Hi,
 * Thanks for pointing this out. The code will be updated in the next plugin update.
 * Cheers!

Viewing 1 replies (of 1 total)

The topic ‘Overwriting WordPress dashicons default CSS’ is closed to new replies.

 * ![](https://ps.w.org/wp-analytify/assets/icon-256x256.png?rev=2901093)
 * [Analytify - Google Analytics Dashboard For WordPress (GA4 analytics tracking)](https://wordpress.org/plugins/wp-analytify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-analytify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-analytify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-analytify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-analytify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-analytify/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Asad Shahbaz](https://wordpress.org/support/users/artisticasad/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/overwriting-wordpress-dashicons-default-css/#post-15547233)
 * Status: resolved