How can I show a cart icon (to access Woocommerce cart) in the header of our website. Using X-Theme. Currently we have Logo to left and Navbar to the Right on mobile, but want to display the cart in the header for easy access for customers. Thanks!
Hello @MarineMooring,
Thanks for writing in!
Please take a look at the solution shared in following thread:
Thanks.
Thank you, this is a step in the right direction. Can you please link me to this thread so I can see the full conversation? Thank you!
Hello @MarineMooring,
Thanks for updating the thread.
Sure, please click on the title below to load full thread.
Thanks.
Thank you! Would it be possible to understand where the Price and Item info is pulling from? The two are running together so it looks like “$0.000ITEMS” rather than “$0.00 0 ITEMS”.
Hey @MarineMooring,
You can adjust the settings of the navbar cart menu item via X > Theme Options > WooCommerce. I checked it on my local setup ad it seems to be displaying fine. Can you please share the page URL so we can take a look?
Thanks!
Hi @MarineMooring,
Thank you for providing the URL. To fix this, please add the following code in the Theme Options > CSS:
@media screen and (max-width: 979px) {
.cart-menu-item-x {
margin-top: 25px !important;
color: #000;
}
.x-btn-navbar-woocommerce .x-cart.outer-inner {
padding: 5px;
}
.x-btn-navbar-woocommerce .x-cart.outer-inner .outer {
margin-right: 10px;
color: #767575;
}
.x-btn-navbar-woocommerce .x-cart.outer-inner .inner {
color: #767575;
}
}
Please note that the code provided above and the JS customization you followed serves as a guide only and is to help you in getting started so implementing it and maintaining the code will be out of our support scope and for further maintenance for new possible versions of the theme that may cause the customization to break, you will need to hire a developer.
Hope this helps!
Awesome! Thank you so much! That did the trick.
You’re welcome!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.