Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. * This snippet gets placed at the bottom of your active themes functions.php file
  5. * - This is necessary as some themes load their own set of icons and use !important; which conflicts with our plugin
  6. */
  7.  
  8. /*
  9. * Fix theme's overriding the default icon set in the dashboard
  10. */
  11. add_action( 'wp_print_scripts', 'fix_wp_svg_fonts_admin_side' );
  12. function fix_wp_svg_fonts_admin_side() {
  13. $screen = get_current_screen();
  14. if( isset( $screen ) && isset( $screen->base ) ) {
  15. $base = $screen->base;
  16. if( $base == 'toplevel_page_wp-svg-icons' ) {
  17. ?>
  18. <style>
  19. .wp-svg-iconset1-all-glyphs [data-icon]:before,
  20. [data-icon]:before {
  21. font-family: wp-svg-plugin-icon-set1 !important;
  22. }
  23. </style>
  24. <?php
  25. }
  26. }
  27. }
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement