Cart Link
-
Hey!
Thanks for introducing woo on laytheme!!!
I just set up a little online shop and i wanted to know if its possible that "Carts(1)" only appears when i am on the "Shop-page"?
As I am a photographer it makes no sense to have "Cart" in the menu all the time...
I tried some plugins to have the 3rd or 4th menu appear when clicking "Shop" but that doesnt work. To link it in the text above the images also doenst work so the "Sidecart Plugin" pops in.
any ideas?In Side Cart-Plugin i tried "Do not show cart on pages: no-woocommerce" but of course the menu still shows "Cart" but doesnt open it...
-
thanks @edgrbnz yea I was going to recommend the same
-
@edgrbnz @arminunruh thx!
i‘m not that good in html/css but i tried.
so i managed to hide 3rd menu, because if i hide only one "link" in my main menu, there is some white space (or am i doing anything wrong?)
is there also a possibility to "only show" on [data-type="page"][data-id="2048"] for example?
so this is my code to hide 3rd menu from several pages and all categories / projects:body[data-type="page"][data-id="662"] nav.laynav.position-top.is-fixed.third_menu{ display: none !important; } body[data-type="page"][data-id="2048"] nav.laynav.position-top.is-fixed.third_menu{ display: none !important; } body[data-type="page"][data-id="2042"] nav.laynav.position-top.is-fixed.third_menu{ display: none !important; } body[data-type="category"] nav.laynav.position-top.is-fixed.third_menu{ display: none !important; } body[data-type="project"] nav.laynav.position-top.is-fixed.third_menu{ display: none !important; }
this is to hide the cart icon:
body[data-type="page"][data-id="662"] .lay-cart-icon-wrap{ display: none !important; } body[data-type="page"][data-id="2048"] .lay-cart-icon-wrap{ display: none !important; } body[data-type="page"][data-id="2042"] .lay-cart-icon-wrap{ display: none !important; } body[data-type="category"] .lay-cart-icon-wrap{ display: none !important; } body[data-type="project"] .lay-cart-icon-wrap{ display: none !important; }
-
oh
I would do it the other way around
I would always hide the menu that contains the cart
and then only show it on the shop page like
nav.third_menu{ display: none; } body.id-222 nav.third_menu{ display: block; }
-
@arminunruh
haha thats perfect, thx!!
btw, you can‘t rename Navigation Label for "Cart" in the menu... -
-
So
I tried it and you can change the cart label to anything you want no?
Just here
-
@arminunruh said in Cart Link:
I tried it and you can change the cart label to anything you want no?
@arminunruh yes, after i did the update it works...
thanks for your great support!
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it