Loas CSS and JS only in Single
-
Hi,
Thanks for the update, but i need you help.
I dont used youtube videos in home, only in some post, so to improve the speed of load, please tell me how can load css and js generated for your plugin only in single.
In youtube-speedload.php where and how put if single?
add_action( ‘wp_enqueue_scripts’, ‘ytsl_plugin_styles_sripts’ );
function ytsl_plugin_styles_sripts() {
wp_enqueue_style( ‘ytsl-textdomain’, plugins_url(‘style.css’, __FILE__) );
wp_enqueue_script(‘ytsl-textdomain’, plugins_url( ‘script.js’ , __FILE__ ), array( ‘jquery’ ), ”, true);
}Thanks for you great support.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Loas CSS and JS only in Single’ is closed to new replies.