Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #609723

    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

    #609744

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.