- This topic has 9 replies, 5 voices, and was last updated 5 years, 10 months ago by Andy.
-
AuthorPosts
-
January 18, 2018 at 4:26 am #3509kirstyParticipant
I realise this question has been asked before but the solution offered of uninstalling woocommerce isn’t going to work for me.
My website serves my business mostly to advise of the service I provide (face-to-face speech therapy) and as a small secondary I have some online sales related to that service. I still want to be able to sell some items from my website through the ‘shop’ page but I don’t want either the login or the shopping cart and $0.00 icons to be displayed on the header of all pages, particularly the home page. I feel like this is really confusing for potential customers who have reached my website to enquire about face-to face speech therapy. Is there a way to remove these icons without getting rid of woocommerce entirely?
January 18, 2018 at 11:18 am #3511YazminKeymasterTo hide the login & cart from the homepage only, copy this into Customize > Additional CSS:
.home .top-login, .home .top-cart { display: none; }
If you want to hide login & cart on any other page, you would use the page ID like so:
.page-id-23 .top-login, .page-id-23 .top-cart { display: none; }
January 18, 2018 at 7:45 pm #3512kirstyParticipantThis worked beautifully. Thanks so much!!!
January 25, 2018 at 5:56 am #3555LiznaParticipantGood day
I used the above mentioned methods to remove the cart and user menu from all my pages. I am using the store only as a catalog and it’s still displaying when I browse products on the shop: http://www.kidzcandy.co.za/shop/ I tried adding a page to see if I can work around this by adding a new page to display all categories http://www.kidzcandy.co.za/candy-shop/ but when I click on them the cart and user menu pops back up. Please advise. TIA
January 25, 2018 at 10:59 am #3556YazminKeymasterHello Lizna, in your case the above code doesn’t work for the /shop/ page as it is a special archive page created by WooCommerce and does not have a page ID in the body class.
so, to hide login & cart from /shop/ page (and any other special WooCommerce pages) you could use this:
.woocommerce-page .top-login, .woocommerce-page .top-cart { display: none; }
and as you are using your store only as a catalog, you could simply hide login & cart from everywhere like so:
.top-login, .top-cart { display: none; }
BTW I love the color scheme you are using with the theme!!
January 25, 2018 at 5:49 pm #3558LiznaParticipantThank you! And thank you for the code, it’s perfect now
January 31, 2018 at 8:18 am #3629kirstyParticipantI’m having a similar issue in that I have used the given codes to remove the shopping cart and log in from all pages (thanks for your help), but it is still present on individual blog posts, i.e. not on the ‘blog’ page but when I click on a specific post to read it the shopping cart and login is displayed at the top again.
https://www.soundsgoodspeechtherapy.co.nz/
Thanks in anticipation!
March 2, 2018 at 10:35 am #4021AndyKeymasterHello Kirsty
Sorry for taking so long to answer your query. We didn’t see your post until just now!
You will need to also add the following to remove cart & login from individual blog posts:
.single-post .top-login, .single-post .top-cart { display: none; }
February 4, 2019 at 10:03 am #6727wieslaw.prugar@gmail.comParticipantAny chance to remove just one item from dropdown login/registration menu say “login” ? Wes
February 4, 2019 at 11:15 am #6728AndyKeymaster@wieslaw-prugargmail-com – you want to hide only the login but keep the cart icon?
Simply remove the part of the code that affects the cart, so you would use this:
.top-login { display: none; }
-
AuthorPosts
- The topic ‘Remove login and shopping cart icons from home page’ is closed to new replies.