LIT wordpress code example
Example: 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');