Hi
i was using this:
add_action(‘init’,’avia_child_theme_setup’);
function avia_child_theme_setup(){
remove_action( ‘ava_main_header’, ‘avia_woocommerce_cart_dropdown’, 10);
}
from: https://kriesi.at/support/topic/how-to-remove-shopping-cart-woo-commerce when using enfold as my theme
Now I’m using a child theme of enfold, when I use this script it doesn’t work. How do I edit it to put this in the child theme’s functions.php and have it work as if it were in the enfold functions.php?
FYI I know I can use this CSS to do this: ul.cart_dropdown { display: none !important; } but I’d like to not load it at all, hence the php request
Hey!
Try adding this to your child theme functions.php file instead.
function avia_woocommerce_cart_placement() { }
Cheers!
Elliott
Perfect thank you