-
AuthorPosts
-
May 2, 2018 at 3:24 pm #950104
Hello Support,
I would like to change the speed with which the “Easy Slider” is fading between the individual slides. Before updating to Enfold 4.3 this could be achieved by changing the value of “transitionSpeed” in the file “shortcodes.js”. But now this part of the code seems to have completely changed. Where can I adapt the fading transition speed of the “Easy Slider”? Which file(s) do I need to copy into the child theme folder, to limit the changes to my child theme?
Thank you!
- This topic was modified 6 years, 6 months ago by trconnected.
May 3, 2018 at 12:50 pm #950723Hello Support,
I would need a reply.May 4, 2018 at 4:46 am #951249Hi,
Thank you for using Enfold.
You should be able to find the same script file inside the config-templatebuilder > aviashortcodes > slideshow folder. :)
Best regards,
IsmaelMay 11, 2018 at 4:02 am #954979HI team
I cannot locate the transition speed code in
config-templatebuilder > aviashortcodes > slideshow.php
What am i doing wrong?
Thanks for your help
ChrisMay 11, 2018 at 1:58 pm #955293Hi fineart!
you have to search for “transitionSpeed” in the slideshow.js and not in the .php file! I guess…
May 11, 2018 at 2:19 pm #955301Hi Ismael,
I performed the following steps:
1) removed the old shortcodes.js file from my (active) Enfold child theme folder
2) removed the following code snippet from the child’s function.php:function change_aviajs() { wp_dequeue_script( 'avia-shortcodes' ); wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 3, true ); } add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
–> Hereafter, as expected, the transitionSpeed was back to the fast default 900ms;
3) Then I changed the value of “transitionSpeed” directly in the main theme folder/file: config-templatebuilder > aviashortcodes > slideshow > slideshow.js from 900 to 2900. Even after deleting the browser cache and reloading the page the slide transition occures at the fast default speed.
What is going wrong?
Once we know how to tweak the transition speed, could you also tell me how to transfer the change from the main theme to the child theme? What do I need to write into the child’s function.php file? Could you please tell me the equivalent code snippet for the one I used under point 2) ?
Thank you!
- This reply was modified 6 years, 6 months ago by trconnected.
May 14, 2018 at 7:18 am #956282Hi,
Did you save the theme options again after doing the changes? It will regenerate the scripts and stylesheets. If you want to transfer in the child theme, you have to dequeue the default slideshow script and enqueue it back using the copied script from the child theme folder.
// https://codex.wordpress.org/Function_Reference/wp_dequeue_script
// https://developer.wordpress.org/reference/functions/wp_enqueue_script/Best regards,
IsmaelMay 17, 2018 at 12:37 pm #958126Hi Ismael,
yes, clicking on “Save” under the “Theme > Options” helped! :-)
But there is still the issue (which I also had with the old “shortcodes.js”) that the transition speed from the last to the first slide (n –>1) of the show remains unaffected by changing the value of “transitionSpeed” (In the old “shortcodes.js” I found the default value hardcoded somewhere and replaced it by “transitionSpeed/2”). The transition speed between all other slides is correctly changing with the value I enter for “transitionSpped”. Would be nice if this issue could be fixed in one of the next Enfold updates and if “transitionSpeed” would become a Theme Option.
Thanks!
May 20, 2018 at 8:57 am #959342Hi trconnected,
Glad you got it working for you! :)
You can request that as a feature here.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.