Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #263975

    Hello,
    How could you I move the cart symbol in the Header Menu, on the right side?
    Thanks a lot and best regards

    #264437

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #264861
    This reply has been marked as private.
    #265072

    Hi!

    Thank you for using the theme!

    Please edit functions.php then add this code at the very bottom:

    add_action('ava_after_main_menu', 'avia_add_woocommerce_cart_dropdown', 10);
    
    function avia_add_woocommerce_cart_dropdown() {
    	global $woocommerce, $avia_config;
    	$cart_subtotal = $woocommerce->cart->get_cart_subtotal();
    	$link = $woocommerce->cart->get_cart_url();
    
    	$output = "";
    	$output .= "<ul class = 'cart_dropdown visible_cart' data-success='".__('was added to the cart', 'avia_framework')."'><li class='cart_dropdown_first'>";
    	$output .= "<a class='cart_dropdown_link' href='".$link."'><span class='avia_hidden_link_text'>".__('Cart','avia_framework')."</span><span ".av_icon_string('cart')."></span></a><!--<span class='cart_subtotal'>".$cart_subtotal."</span>-->";
    	$output .= "<div class='dropdown_widget dropdown_widget_cart'><div class='avia-arrow'></div>";
    	$output .= '<div class="widget_shopping_cart_content"></div>';
    	$output .= "</div>";
    	$output .= "</li></ul>";
    
    	echo $output;
    }

    Add this on Quick CSS or custom.css:

    .header_color .cart_dropdown_link {
    background: transparent;
    }
    
    ul.cart_dropdown.visible_cart {
    border: none;
    right: 20px
    }
    
    div#header_main ul.cart_dropdown.visible_cart {
    display: none;
    }

    Regards,
    Ismael

    #266643
    This reply has been marked as private.
    #267839

    Hi!

    Can you please check the login credentials – when I try to use them I get an error message (ERROR: Invalid Email.).

    To change the color of the cart link use some css code – insert it tinto the quick css field or child theme style.css file:

    
    #top .header_color .cart_dropdown_first .cart_dropdown_link {
    color: #333333;
    }
    

    If you want to change the hover color too you can use this code:

    
    #top .header_color .cart_dropdown_first .cart_dropdown_link:hover {
    color: #ff0000;
    }
    

    Regards,
    Peter

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