Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #813408

    See http://www.allevamentovalledeimedici.it in homepage scrolling down, why 3 images on footer do not show but if I refresh page I see it ?

    • This topic was modified 7 years, 3 months ago by goodpixel.
    #813416

    Hey,

    Please add following code to Functions.php file of your child theme

    function wp_change_shortcodesjs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_shortcodesjs', 100 );

    then go to Enfold/js/shortcodes.js and copy it inside enfold-child/js/ folder, open the file and find

    
    $('.avia_animate_when_almost_visible', container).avia_waypoints({ offset: '80%'});
    

    and change it to

    
    $('.avia_animate_when_almost_visible', container).avia_waypoints({ offset: '100%'});

    Cheers!
    Yigit

    #813420

    But why this changes?

    #813425

    Hey!

    Sorry, i should have elaborated.
    You have affect on your images so they show up when scrolled down. However since your images at the very bottom of your page, affect is not being triggered correctly. Solution would be either to apply the changes i recommend above or to add more content below your images.

    Regards,
    Yigit

    #813426

    Ok thanks!

    #813433

    Hey!

    You are welcome!
    Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

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