Site logo

Archived topic

Shopping cart in menu behaves differently

3 replies · Started by retroreiz on July 11, 2019

Viewing posts 1–4 of 4

Hello, I'm trying to describe my case. Maybe someone can help me with what I'm doing wrong.

My site: https://retroreiz.de

My problem:
Since I installed the plugin Mega Menu, the theme is of the opinion that the shopping cart in the desktop view is declared as "alink". In the mobile view, it works as usual.

Desktop view wrong:
https://www.bilder-upload.eu/bild-f3b8af-1562827636.png.html
https://www.bilder-upload.eu/bild-e56287-1562828634.png.html

Mobile view correctly:
https://www.bilder-upload.eu/bild-9c8abc-1562828655.png.html
https://www.bilder-upload.eu/bild-08e8be-1562828666.png.html

I try with Element Hooks to change, i try with Custom CSS to change, but i didnt unterstand why it is wrong?

I have to say, I have not quite understood how I basically change the hooks. I read that (https://docs.generatepress.com/article/generate_woocommerce_menu_cart_icon/) through, but that does not work with the element hooks.

Many Thanks.

Hi there,

you can try this CSS to put the icon inline and change its color to match the nav.

nav li.wc-menu-item {
    posiion: static;
    display: inline-block;
    float: none !important;
}
nav li.wc-menu-item a {
    color: #fff;
}

@David

Wow... Thanks for the quick help! It works great!

Glad to be of help.

This archived topic is closed to new replies.