I would like to add a piece of code to the top of the sub menu on this site: https://www.barknbrock.com/site/
I want the price of the cart to appear next to the Cart menu item (<?php echo WC()->cart->get_cart_total(); ?>)
Hi jmorley88,
I’m not sure I understand exactly where you would like to add your code, could you try to explain a bit further and/or post screenshots of what you are trying to achieve please? You might want to do something like this: http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
Thanks,
Rikard
Hi Rikard,
I want the top bar to look similar to barknbrock.com
so next to the checkout and cart I want to add some php code that displays the price of the cart.
How do I add something next to cart on the very top bar
inside –
<nav class=”sub_menu” role=”navigation” itemscope=”itemscope” itemtype=”https://schema.org/SiteNavigationElement”><ul id=”avia2-menu” class=”menu”><li id=”menu-item-823172″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-823172″>Shop
<li id=”menu-item-823169″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-823169″>My Account
<li id=”menu-item-823170″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-823170″>Checkout
<li id=”menu-item-823171″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-823171″>Cart
PHP CODE NEED HERE
</nav>
Hey!
it would require a huge amount of time and customization of the theme and that is why you would need to hire a freelance developer for this job.
Regards,
Andy
Hi Andy,
I would simply like to know which php file contains – <nav class=”sub_menu”>.
Thanks
Josh
Hey!
You can find the code for the menu in wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\menu.php
Regards,
Vinay Kashyap