I would like to add the following jquery plugin to the theme: http://jedfoster.com/Readmore.js/
I am not sure how to go about doing this. Also, I am not currently using a child theme.
Thanks
Hi svetlana_i!
Please add the file inside JS folder and add following code to Functions.php file in Appearance > Editor
function my_custom_js_script() {
wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'my_custom_js_script' );
Best regards,
Yigit
