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

    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(); ?>)

    #580839

    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

    #581787

    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>

    #583598

    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

    #584438

    Hi Andy,

    I would simply like to know which php file contains – <nav class=”sub_menu”>.

    Thanks

    Josh

    #585946

    Hey!

    You can find the code for the menu in wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\menu.php

    Regards,
    Vinay Kashyap

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