Answers for "Lity in Wordpress"

PHP
0

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');
Posted by: Guest on February-16-2021

Browse Popular Code Answers by Language