Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Lity in Wordpress

/*Lity in WordPress ChildTheme - Code goes to functions.php*/
function call_lity_scripts() {
wp_enqueue_style( 'lity-css', get_stylesheet_directory_uri() . '/css/lity.min.css' );
wp_enqueue_script( 'lity-js', get_stylesheet_directory_uri() . '/js/lity.min.js', array( 'jquery' ), NULL, true );
}
add_action('wp_enqueue_scripts', 'call_lity_scripts');
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #Lity #Wordpress
ADD COMMENT
Topic
Name
7+7 =