Out of dated Font Awesome pack
-
Hello guys,
Could you please consider updating the Font Awesome library to the latest one, because you messed up the latest version with your admin inline style?
wp_add_inline_style( 'font-awesome', $this->get_inline_style( 'font-awesome' ) );
You set CSS styles with an important selector and if anyone else uses that font inside the dashboard you will mess up icons.
Or if you can’t update the font, improve your code to load that inline styles only on your pages.
public function enqueue_scripts() { wp_register_style( 'font-awesome', "https://maxcdn.bootstrapcdn.com/font-awesome/{$this->font_awesome_version}/css/font-awesome.min.css", array(), $this->font_awesome_version ); wp_add_inline_style( 'font-awesome', $this->get_inline_style( 'font-awesome' ) ); wp_add_inline_style( 'dashicons', $this->get_inline_style( 'dashicons' ) ); }
Best regards,
Nenad
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Out of dated Font Awesome pack’ is closed to new replies.