I’m now searching for hours but I can’t find any template with the HTML of the WC-menu-item. I would like to add a custom hook right after the opening wc-menu-item-tag before the anchor-tag in my child theme.
There is no woocommerce-template either… What am I missing?
I created a small conditional logged-in-menu with php (Hi [name], my account, logout) and I want it to be displayed left from the cart. No I inserted it with the inside-navigation hook, but I had to place it with css per “absolute”, so when the cart changes his width there is too much space.
No sure if there is a better solution…
Thank you, I’m new to filters and programming in general, so as I inserted your code there was a new menu-point added but I don’t know how to move it inside an existing one (the woocommerce-menu-point) what I originally wanted to do. It has to be inside so that I can place it correctly.
But now I see that even this won’t help me because in the mobile-version the cart-icon is added in a different way and my code would disappear.
I will do it with the “inside-navigation”-hook and try to position it as precise as possible with CSS.