-
AuthorPosts
-
September 9, 2017 at 12:29 am #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 2014Hi!
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 todisplaySlide.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,
YigitI 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?
ThanksSeptember 11, 2017 at 1:21 pm #850466Hey 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,
VictoriaSeptember 11, 2017 at 2:10 pm #850498Thanks 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.
September 12, 2017 at 6:04 pm #851148Hi,
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,
NikkoSeptember 13, 2017 at 1:01 am #851297Hi 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.
September 13, 2017 at 3:46 pm #851611This is solved.
You can close the post.September 14, 2017 at 7:41 am #851886 -
AuthorPosts
- The topic ‘LAYER SLIDE – SLOW DOWN FADE EFFECT SPEED’ is closed to new replies.