Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1041774

    I have increased the transitionSpeed in slideshow.js in my parent Enfold theme, but would like to move this change to my child theme.

    I have added this code to my child theme’s functions.php file:

    function add_javascript_functions_page() {
    	wp_dequeue_script( 'avia-module-slideshow' );
    	wp_enqueue_script( 'avia-module-slideshow' , get_stylesheet_directory_uri() . '/js/slideshow.js' , array('jquery' ));
    }
    add_action( 'wp_enqueue_scripts', 'add_javascript_functions_page' , 100 );

    but my site is still using the file from the parent theme. Can you see anything incorrect here that i might be missing? I have verified that the path to the js file in my child theme is correct. I am using Enfold 4.4.1. Thanks!

    • This topic was modified 5 years, 11 months ago by Scott Beyer.
    #1044638

    Hey Scott,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #1046583
    This reply has been marked as private.
    #1049213

    Hi,
    Sorry for the late reply, it seems that the login has expired. But please try this function instead of the one above:

    function add_javascript_functions_page() {
    wp_dequeue_script( 'avia-module-slideshow' );
    wp_enqueue_script( 'avia-module-slideshow-child', get_stylesheet_directory_uri().'/js/slideshow.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'add_javascript_functions_page', 100 );

    Please ensure that your file and path in your child theme directory is: /js/slideshow.js
    Then clear your browser cache a few times, and also clear any cache plugin.

    Best regards,
    Mike

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