Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1057175

    Hello,

    I want to edit the avia_woocommerce_cart_dropdown functions located in enfold/config-woocommerce/config.php
    Unfortunately there is not the if(!function_exists so I can’t just override it in my child theme functions…

    I tried to remove_action like that :
    remove_action( ‘ava_main_header’, ‘avia_woocommerce_cart_dropdown’, 10);

    But it didn’t work. Tryed by adding delay with init tag, after_setup_theme tag etc and none of them worked.

    Could you help me please ?

    Thanks

    • This topic was modified 5 years, 11 months ago by Ludovic. Reason: done
    #1057276

    Hey Ludovic,

    Try to modify this function instead: avia_woocommerce_cart_placement
    then just replace this part:

    add_action( $position, 'avia_woocommerce_cart_dropdown', 10);

    make sure to copy this as well:

    add_action( 'init', 'avia_woocommerce_cart_placement', 10);

    Hope this helps.

    Best regards,
    Nikko

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