Archived topic
Replace text with cart icon in secondary menu
7 replies · Started by Jiri on August 22, 2018
Hi!
I have searched for some solutions, but nothing works in my case. Is there any way how to replace the text CART with cart icon in secondary menu?
Many thanks for your patience.
Best regards Jiri
Hi there,
Would this help?
https://docs.generatepress.com/article/generate_woocommerce_menu_item_location/
Let me know :)
Hi!
I have tried it (and many other variants from this forum), but still without success.
Is it still working with the latest version of theme and plugin?
Best regards Jiri
Sorry a bit confused as this topic is quite old.
The Cart text shouldn't be showing by default.
Can you turn off maintenance mode so I can see the issue?
Thanks!
I know it's pretty old ... sorry for this.
Maintenance mode is off, you can check it on the site directly.
I'm not seeing a secondary navigation.
The Cart text is in the top bar which is why the code wouldn't work.
Ok, sorry for wrong description. I thought it is secondary navigation.
Is there any way how to do change the text in this top bar?
Try these steps:
- Create a new menu and assign to secondary navigation.
- Use the PHP snippet above to move the cart icon.
- Set secondary navigation location to above header:
https://docs.generatepress.com/article/secondary-navigation-location/
- Check merge with secondary navigation option in top bar layout:
https://docs.generatepress.com/article/top-bar-widget-area/#secondary-navigation
This should give you the exact layout you have before.
Let me know :)