Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Animations not starting on scroll #781125

    It works, I also disable your script and re-enable minification but only for css inline and not inline.

    Thanks !!!

    • This reply was modified 7 years, 7 months ago by prometee.
    in reply to: Animations not starting on scroll #781112
    in reply to: Animations not starting on scroll #781097

    Thanks, but no change :$

    I just add your script to our child theme and add it to “wp_enqueue_scripts” hook :
    wp_enqueue_script( 'mmx-avia-mod', get_stylesheet_directory_uri() . '/js/mmx-avia-mod.js', array( 'jquery', 'avia-shortcodes' ), '', true);

    • This reply was modified 7 years, 7 months ago by prometee.
    in reply to: Animations not starting on scroll #781072

    Hi,

    I disable HTML, CSS and JS concatenation/minification (Plugin: WP-Rocket). But animation bug still appears, we reproduce it all the time by :

    • Start a new private window in chrome
    • Open the Chrome DevTools with setting “Disable cache (while DevTools is open)”
    • Go to the Home of this website
    • Scroll down to half the page showing “Découvrez nos créations” title
    • Then if you scroll a little bit more (title half hide) the animation that show product list with images under this title come but too late

    Best regards,
    Francis

    in reply to: Disable WooCommerce quantity +/- feature #681709

    I have an issue with this code, my problem was that I don’t have step attribute on the input so when I click on “+” or “-” the result was NaN because the step is null in my case.

    To resolve that I copy the actual javascript to my child theme and modify 2 lines off code :
    In woocommer-mod.js line 22 (I add “|| 1” to get ride of the null or undefined value):
    step = parseInt( number.attr( 'step' ), 10 ) || 1,

    And line 24 I add this :

    number.remove();
    newNum.removeAttr('pattern');

    To load this new script and unload the core one :

    function wp_dequeue_avia_wc() {
        wp_dequeue_script( 'avia-woocommerce-js' );
    }
    function wp_enqueue_avia_wc() {
        wp_enqueue_script('avia-woocommerce-js2', get_stylesheet_directory_uri() . '/config-woocommerce/woocommerce-mod.js', array('jquery'), 1, true);
    }
    
    add_action( 'wp_print_scripts', 'wp_dequeue_avia_wc', 100 );
    add_action( 'wp_enqueue_scripts', 'wp_enqueue_avia_wc' );
    • This reply was modified 8 years, 2 months ago by prometee. Reason: format
Viewing 5 posts - 1 through 5 (of 5 total)