Reply 171579 to: tricky question on setting a cookieless domain

Avatar: laranz
Laranz
Participant
September 5, 2017 at 05:56

Hi,

Try this in your .htaccess file,

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

And then still it didn’t load means, use this in your functions.php , so that we can load font-awesome from CDN,

add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' );
function prefix_enqueue_awesome() {
	wp_enqueue_style( 'prefix-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '4.0.3' );
}

Let us know,

Thanks,
laranz.

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.