Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * This snippet gets placed at the bottom of your active themes functions.php file
- * - This is necessary as some themes load their own set of icons and use !important; which conflicts with our plugin
- */
- /*
- * Fix theme's overriding the default icon set in the dashboard
- */
- add_action( 'wp_print_scripts', 'fix_wp_svg_fonts_admin_side' );
- function fix_wp_svg_fonts_admin_side() {
- $screen = get_current_screen();
- if( isset( $screen ) && isset( $screen->base ) ) {
- $base = $screen->base;
- if( $base == 'toplevel_page_wp-svg-icons' ) {
- ?>
- <style>
- .wp-svg-iconset1-all-glyphs [data-icon]:before,
- [data-icon]:before {
- font-family: wp-svg-plugin-icon-set1 !important;
- }
- </style>
- <?php
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement