Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
May 13, 2014 at 3:35 pm #263975
Hello,
How could you I move the cart symbol in the Header Menu, on the right side?
Thanks a lot and best regardsMay 14, 2014 at 4:08 am #264437Hi,
Can you post the link to your website please?
Regards,
JosueMay 14, 2014 at 7:18 pm #264861This reply has been marked as private.May 15, 2014 at 4:59 am #265072Hi!
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,
IsmaelMay 19, 2014 at 5:27 am #266643This reply has been marked as private.May 21, 2014 at 8:39 am #267839Hi!
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 -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.