Tagged: x
-
AuthorPosts
-
February 7, 2017 at 3:29 pm #1361776
lovecomsParticipantHi, this is both a woocommerce question and an X question. With other themes, on mobile, there is a clear cart button, on my x theme: shapeeze.com.au, to access the cart, i have to go back to the menu. is there a way of adding cart button within the theme?
thanks
I’ll send details via private replyFebruary 7, 2017 at 3:31 pm #1361778
lovecomsParticipantThis reply has been marked as private.February 7, 2017 at 8:30 pm #1362203
NicoModeratorHi There,
Thanks for writing in.
Would you mind sharing us more details on where you want to add the cart aside from the menu.
You might want to check the link below:
https://community.theme.co/forums/topic/woocommerce-shopping-cart-icon/
Hope it helps.
Let us know how it goes.
Thanks.
February 7, 2017 at 11:05 pm #1362298
lovecomsParticipantHi, to clarify,
I’d like to place the woocommerce cart icon in the upper menu, where the social icons are currently
(i’ve made an approximation of a woocommerce cart on the screenshot attached – the screenshot shows the position of the cart icon.)
I’d like for it to be a woocommerce cart so users can see that it has been updated after a purchase.
thanks for your helpFebruary 8, 2017 at 2:44 am #1362497
ChristopherModeratorHi there,
Please check this thread : https://community.theme.co/forums/topic/moving-woocommerce-cart-from-navbar-to-top-bar/#post-742361
Hope it helps.
February 8, 2017 at 5:23 am #1362632
lovecomsParticipantTyhis doesn’t assist me. I have already read through threads on the topic but the conversation syntax doesn’t make it legible to anyone but the person who you were assisting. Can you please advise me how to do this on my site.
February 8, 2017 at 7:39 am #1362745
Paul RModeratorHi,
You need to do the following.
1. Set-up a child theme
https://community.theme.co/kb/how-to-setup-child-themes/
2. Create file _topbar.php in wp-content/themes/x-child/framework/views/global
3. Copy the code below into that file.
<?php // ============================================================================= // VIEWS/GLOBAL/_TOPBAR.PHP // ----------------------------------------------------------------------------- // Includes topbar output. // ============================================================================= ?> <?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?> <div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?> <?php x_social_global(); ?> <ul class="x-nav"> <li class="menu-item current-menu-parent x-menu-item x-menu-item-woocommerce"> <a href="<?php echo x_get_cart_link(); ?>" class="x-btn-navbar-woocommerce"> <?php echo (x_woocommerce_navbar_cart()); ?> </a> </li> </ul> </div> </div> <?php endif; ?>Hope that helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1361776 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
