Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
December 2, 2019 at 1:18 pm #1161851
Hello,
Header cart is created from code:function avia_woocommerce_cart_dropdown_modified() { global $woocommerce, $avia_config; $cart_subtotal = $woocommerce->cart->get_cart_subtotal(); $link = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : $woocommerce->cart->get_cart_url(); $id = ""; $added = wc_get_notices('success'); $trigger = !empty($added) ? "av-display-cart-on-load" : ""; if(avia_get_option('cart_icon') == "always_display_menu") { $id = 'id="menu-item-shop"'; } $output = "<ul {$id} class = 'menu-item cart_dropdown {$trigger}' data-success='".__('was added to the cart', 'avia_framework')."'>"; //$output .= "<li>PHP/HTML CODE TO ADD ENFOLD SEARCH ICON</li>"; //$output .= "<li>ADD WISHLIST ICON</li>"; //$output .= "<li>ADD LOGIN ICON</li>"; $output .= "<li class='cart_dropdown_first'>"; $output .= "<a class='cart_dropdown_link' href='".$link."'><span ".av_icon_string('cart')."></span><span class='av-cart-counter'>0</span><span class='avia_hidden_link_text'>".__('Shopping Cart','avia_framework')."</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; }
Now I want to add list items for search, wishlist, and login (look commented out code). While wishlist and login are simple because I can add simple links to the corresponding pages.
But how to create the correct Enfold search icon? What code do I need?The final result should look: result
December 4, 2019 at 1:44 pm #1162577Hey adplusdesign,
Thank you for the inquiry.
You can use the existing search icon in the theme.
<a aria-label="Search" href="?s=" rel="nofollow" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"><span class="avia_hidden_link_text">Search</span></a>
The av-icon data attribute contains the search icon.
Best regards,
Ismael -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.