Can I place the cart icon in the secondary header? I have included a link in the private content for the look we are going for.
Hey web6s,
Can you try the solutions posted on this thread: https://kriesi.at/support/topic/move-shopping-cart-icon-to-the-secondary-menu-area/ ?
Hope it helps.
Best regards,
Nikko
That did not work.
Hi web6s,
I see, here’s a workaround that will need to tweak some files and in order for this to be done, you will need to use a child theme: https://kriesi.at/documentation/enfold/child-theme/
In the child theme create a folder includes then inside that folder create a file called helper-main-menu.php inside it paste this code: https://pastebin.com/SHDP9Udm
Edit functions.php in the child theme and add this code:
if(!function_exists('avia_woocommerce_cart_placement'))
{
add_action( 'init', 'avia_woocommerce_cart_placement', 10);
function avia_woocommerce_cart_placement()
{
$position = avia_get_option('header_position', 'header_top') == "header_top" ? "avia_after_phone_info" : "ava_inside_main_menu";
if(avia_get_option('cart_icon') == "always_display_menu")
{
$position = "ava_inside_main_menu";
if( strpos( avia_get_option('header_layout'), 'bottom_nav_header') !== false && avia_get_option('header_position') == 'header_top')
{
$position = "ava_before_bottom_main_menu";
}
}
add_action( $position, 'avia_woocommerce_cart_dropdown', 10);
}
}
Then in the WordPress Dashboard, go to Enfold > General Styling > Quick CSS, then add this css code:
#header_meta .cart_dropdown {
border: none;
}
#header_meta .cart_dropdown a.cart_dropdown_link {
background-color: transparent;
}
Finally in Enfold > Shop Options > Header Shopping Cart Icon set this to Always Display floating on the side
Best regards,
Nikko