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

    I have a child theme derived from enfold. If I want to modify config.php (config-woocommerce/config.php) inside a subtheme, how do I get this to load and take priority over the base theme? Right now, I copied this file into my subtheme but it doesn’t seem like its being run (put a die() in there and didn’t see it run).

    I am trying to do this so I can move the shopping cart drop down to the main menu nav at the top to look like a regular drop down menu. Right now, I can’t get the object to be position to the right of the menu within the site width (it is currently at the far right edge per the defaults).

    #368028

    Hey mooreaa!

    I think what your wanting to do is to add this to the bottom of your child themes functions.php file.

    add_action( 'init', 'avia_woocommerce_cart_placement_extended', 20);
    function avia_woocommerce_cart_placement_extended()
    {
    	$position = avia_get_option('header_position',  'header_top') == "header_top" ? "ava_inside_main_menu" : "ava_inside_main_menu";
    	remove_action( 'ava_main_header', 'avia_woocommerce_cart_dropdown', 10 );
    	add_action( $position, 'avia_woocommerce_cart_dropdown', 10 );
    }

    Best regards,
    Elliott

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