How to correctly use = wp_enqueue_style with a CDN in wordpress?
Posted
by
Amod
on Stack Overflow
See other posts from Stack Overflow
or by Amod
Published on 2013-10-25T09:48:51Z
Indexed on
2013/10/25
9:54 UTC
Read the original article
Hit count: 162
My current code:
wp_enqueue_style( 'script-css', plugins_url( 'script/myscript.js', FILE ));
My goal:
Instead of loading the file from the plugins directory, I want to load above script file from http://mycloudfronturl.net/myscript.js
But somehow I am messing with either the quotes or while replacing the plugins_url. I am not a hard code php coder, so can someone tell me what to do please?
Thanks and Regards, Amod
© Stack Overflow or respective owner