Hi everybody,
a Plugin i use enqueues it’s own Font Awesome CSS which made it load two times on my website. I therefore added this Code Snippet:
add_action( ‘wp_print_styles’, ‘tn_dequeue_font_awesome_style’ );
function tn_dequeue_font_awesome_style() {
wp_dequeue_style( ‘fontawesome’ );
wp_deregister_style( ‘fontawesome’ );
wp_dequeue_style( ‘fontawesome_css’ );
wp_deregister_style( ‘fontawesome_css’ );
}
Now i want to kind of enqueue to the self-hosted Font Awesome i already use. Because that Plugin now doesn’t show the Font Awesome Icons anymore. So i kind of want to enqueue it again but pointing to my self-hosted Font Awesome URL.
I can’t wrap my head around this (i’m not very “fluent” in PHP, i’m very happy with my HTML and CSS :D). I actually tried to do some own “coding” and it broke my website. 3 Times. Aaaaaand it didn’t save it so i did in hindsight nothing. 😀
Can somebody help out? 🙂
[ad_2]