Sunday 13 March 2016

How to Add Js and css In footer in Wordpress

How to Add Js and css In footer in Wordpress


/** Footer add js and css in wordpress
function prefix_add_footer_styles() {

wp_enqueue_script( 'js-name', get_stylesheet_directory_uri() . 'your js path',array('jquery'),'',true);
wp_enqueue_style( 'css-name', get_stylesheet_directory_uri(). 'yor css path' );
  
};
add_action( 'get_footer', 'prefix_add_footer_styles' );

**/

No comments:

Post a Comment

Thank You For Comment