Basket only on specific pages

Hello,

Would it be possible to disable basket icon in shop settings inside theme but to show basket only on specific pages ? I mean I just want this basket to be visible on shop page not in header menu.

Do you have shortcode for basket maybe?


Thank you

Comments

  • Hello,

    Cart icon can be displayed only in the header. You can add a cart widget, but it is not an icon, and its displays a products list from the cart.

    You can hide the cart icon on your website except for particular pages with a custom CSS code. Let me know if you need help writing it, but I will need a link to your website.


    Thanks

  • edited January 2022

    Hey Phil,

    I have found option to just enable side cart but its kinda awkward without basket on top :) so yes I would prefer this css code to show basket only on shop pages but not on whole website, because website is not really ment to be shop there is just couple of journals for sell rest is company website.

    I have sent you link to page using themeforest contact form, you will se now cart on top is gone because side cart is enabled in theme options.


    thx

  • Can you active back the basket in the header, please?

    To hide the icon, I need to have it enabled first.


    Thanks

  • Hey Phil, its enabled now , kinda ugly because lots of items in menu wel at least on laptop goes a bit messed up :(

  • This code will remove the cart icon from all pages, except those with the WooCommerce functionality.

    body:not(.woocommerce) #Top_bar .top_bar_right #header_cart{
     display: none!important;
    }
    

    If you want to leave it only on the page you have sent a link to, use this one instead:

    body:not(.woocommerce-shop) #Top_bar .top_bar_right #header_cart{
     display: none!important;
    }
    

    To fix the problem with the menu, check the following link:

    https://support.muffingroup.com/faq/menu-goes-under-header-does-not-fit/

    Thanks

  • Awesome thx Phil , yes first option is best only on woocommerce pages .

    About menu yes I know its just too long tried already all options and only what fix is smaller letters which needs to be 12px but then thats really too small to read , thx man awesome help

  • I am glad I could help.

    If you have any other questions or problems, please, let me know.


    Thanks

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.