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

    #626168

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

    #626682

    Thanks, 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.
    #627294

    Hi,

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

    #631692

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

    #632042

    Hi,

    @peanuttario Please start a new thread and attach WordPress admin logins and FTP logins in private content field so we can look into it.
    If you post them here, creator of this thread will be able to see them as well.

    Best regards,
    Yigit

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