Tagged: Fullwidth Easy Slider
-
AuthorPosts
-
April 30, 2016 at 8:12 am #624890
I’m using Enfold and the Enfold child theme. The front page uses the Fullwidth Easy Slider module. The fades are fairly abrupt so I’d like to slow down the transition time.
You’ve answered the question dozens of times, but they all seem to involve editing javascript files in the “core” theme. (e.g. ./enfold/js/shortcodes.js) I’m concerned if I do this the changes will be overwritten with the next theme update.
Is there an update-safe way to do this? Preferably in the child theme?
Extra credit: is there a way to update only the transition speed (or easing method, or other slider options.) while leaving the rest of the .js file in the parent theme’s folders?
Thanks!
May 3, 2016 at 5:16 am #626168Hey RealBasics,
Thank you for using Enfold.
I”m sorry but you cannot adjust the transition alone. You have to modify the whole script file.
Best regards,
IsmaelMay 3, 2016 at 6:56 pm #626682Thanks, Ismael.
So is it safe to modify the theme files directly or will they be overwritten with the next update? I’m assuming not, which is why I was asking about making the changes in the child theme.
What are the the best steps for importing just that script to the child theme then? Do I need to enqueue the new one, dequeue the old one? Will just copying it to the same folder tree do the trick the way copying php templates will?
Thanks!
- This reply was modified 8 years, 7 months ago by RealBasics.
May 4, 2016 at 3:39 pm #627294Hi,
Please add following code to Functions.php file of your child theme
function wp_change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true ); } add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
and move modified file inside /js folder
Best regards,
YigitMay 12, 2016 at 11:43 pm #631692Hi! I have the same exact question but it pertains to the easy slider and not the fullwidth easy slider. I tried to add that code into functions.php but it made it so that the page wouldn’t load.
May 13, 2016 at 1:29 pm #632042 -
AuthorPosts
- You must be logged in to reply to this topic.