Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.
    #950723

    Hello Support,
    I would need a reply.

    #951249

    Hi,

    Thank you for using Enfold.

    You should be able to find the same script file inside the config-templatebuilder > aviashortcodes > slideshow folder. :)

    Best regards,
    Ismael

    #954979

    HI team
    I cannot locate the transition speed code in
    config-templatebuilder > aviashortcodes > slideshow.php
    What am i doing wrong?
    Thanks for your help
    Chris

    #955293

    Hi fineart!

    you have to search for “transitionSpeed” in the slideshow.js and not in the .php file! I guess…

    #955301

    Hi 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.
    #956282

    Hi,

    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,
    Ismael

    #958126

    Hi 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!

    #959342

    Hi 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

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