Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #849777

    HI I found an old topic about the same thing with the following code #207556
    I would like to reduce the speed of the fade effect in one of my easy slider.
    This was a reply from one of your moderator back to 2014

    Hi!

    Please go to wp-content\themes\enfold\js folder and open shortcodes.js file and find

    displaySlide.css({visibility:’visible’, zIndex:2, opacity:0}).avia_animate({opacity:1}, this.options.transitionSpeed/3, ‘linear’);

    self._start_video(displaySlide);
    self._stop_video(hideSlide);

    hideSlide.avia_animate({opacity:0}, this.options.transitionSpeed/2, ‘linear’, function()
    and change it to

    displaySlide.css({visibility:’visible’, zIndex:2, opacity:0}).avia_animate({opacity:1}, this.options.transitionSpeed/1, ‘linear’);

    self._start_video(displaySlide);
    self._stop_video(hideSlide);

    hideSlide.avia_animate({opacity:0}, this.options.transitionSpeed/1, ‘linear’, function()
    Best regards,
    Yigit

    I went to find that part of the code, but looks slightly different.
    Can you suggest me what’s the code to look for and how to change it with the updated version of your code please?
    Thanks

    #850466

    Hey grafica6106,

    Below is where you can find the code in shortcodes.js. Changes are better to be made in a child theme. Here is how to do it:

    https://kriesi.at/support/topic/edit-shortcodes-js-in-child-theme/#post-399336

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #850498

    Thanks for your tips about Child Theme. I did it and is very smart.
    Now I have two consequent questions:

    1) speaking about the above, having now a child theme do I need to create a new shortcodes.js file in my child theme directory containing only the code I want changed? just the single line or all the function?

    2) I would like to change some css related to a easy slider I have in my home page. I just need to add that css to my child them stylesheet correct?
    How can I find the correct .classname or idname in my parent one, to be sure to use the same class or id?

    Thanks.

    #851148

    Hi,

    1.) You need to dequeue the original shortcodes.js file and in the new shortcodes.js file, you should include all the functions.

    2.) I’m not sure I get what you meant but you can use google web inspector or firebug to check what selector to use and override it.

    Best regards,
    Nikko

    #851297

    Hi Nikko, thanks for your reply.
    I am sorry but I am not that savvy with code so I have problems here.
    I used the code below to do the dequeue as suggested in another post.
    If i put this code in my function.php child theme all my avia stuff on the website disappear.
    Can you please provide me a link where to learn how to do this?
    function wp_change_aviajs() {
    wp_dequeue_script( ‘avia-default’ );
    wp_enqueue_script( ‘avia-default-child’, get_stylesheet_directory_uri().’/js/avia.js’, array(‘jquery’), 2, true );
    }
    add_action( ‘wp_print_scripts’, ‘wp_change_aviajs’, 100 );

    I made the child theme because I wanted to fix a couple of problems with the website I am doing using some css or with a function, but at this stage whatever file I am touching on the child theme is making a mess on the way I see the website.
    In the private content area you have admin credential to use to access and have a look.

    • This reply was modified 7 years, 3 months ago by grafica6106.
    #851611

    This is solved.
    You can close the post.

    #851886

    Hi,

    Glad that you figured it out. Let us know if you need anything else.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘LAYER SLIDE – SLOW DOWN FADE EFFECT SPEED’ is closed to new replies.