-
AuthorPosts
-
December 6, 2018 at 6:18 pm #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 6 years ago by Scott Beyer.
December 13, 2018 at 1:09 am #1044638Hey Scott,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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,
BasilisDecember 17, 2018 at 10:54 pm #1046583This reply has been marked as private.December 30, 2018 at 12:19 am #1049213Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.