Site logo

Archived topic

Remove Dropdown Arrows from Navigation

14 replies · Started by Livia on July 29, 2019

Viewing posts 1–15 of 15

I wanted to remove just the dropdown arrows from the nav menu and it worked with this code:
.menu-item-has-children .dropdown-menu-toggle {
display: none;
}

.main-navigation .main-nav ul li.menu-item-has-children > a {
padding-right: 10px;
}

However, it removes the dropdown menu all together on tablets and mobile devices. I just want to remove the arrows on all devices keeping the dropdown menu.

Hi there,

The page you linked isn't loading for me.

Can you try this first?

@media (min-width: 769px) {
    .menu-item-has-children > .dropdown-menu-toggle {
        display: none;
    }
    .main-navigation .main-nav ul li.menu-item-has-children > a {
        padding-right: 10px;
    }
}

that works Leo. Thank you. One more thing, how could we change it so that only the submenus have arrows but not the top level?

hi, I'd paste your code into "Additional CSS", but it does not work.

Can you link me to the site in question?

Feel free to open a new topic so you can use the private URL field.

Try this:

@media (min-width: 769px) {
    .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }
}

Hi Leo,
Hope all is well. I'm trying to do the same thing and this code you wrote above works well for me. Copied again here:

@media (min-width: 769px) {
    .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }
}

But, it seems to make the space between menu items inconsistent. For example, the space between our first menu item (Lifestyle) and the second (podcast) is much wider than the difference between (podcast) and (about).

Any ideas on how to fix this? I took out the code for now given it looks pretty weird but let me know if you need me to add it back so you can see it better.

Many thanks,
Joy

Hi there,

try this CSS:

@media (min-width: 769px) {
    .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }

    .main-navigation .main-nav ul li.menu-item-has-children>a {
        padding-right: 10px;
    }
}

Worked thanks David!

You're welcome

Thank you Leo & David... I wanted to do the same thing and your CSS code worked perfectly. I am so glad that I chose GeneratePress as my main choice for developing websites for my customers. I like using your themes, approach, and support better than using products like wpBakery. Keep up the good work.

Glad we can be of help! And thanks for the great feedback!!

I do not want to remove the arrow from Menus with Sub-menu, but want to know how can I decrease the space between the arrow and menu.

Please open a new topic for your question as your question is different than the original topic.

Thanks!

This archived topic is closed to new replies.