- This topic has 14 replies, 6 voices, and was last updated 1 year, 1 month ago by Leo.
-
AuthorPosts
-
July 29, 2019 at 12:16 pm #970391Livia
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.
July 29, 2019 at 12:25 pm #970396LeoStaffCustomer SupportHi 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; } }
July 29, 2019 at 12:35 pm #970406Liviathat works Leo. Thank you. One more thing, how could we change it so that only the submenus have arrows but not the top level?
July 29, 2019 at 4:17 pm #970544LeoStaffCustomer SupportEdited the CSS above:
https://generatepress.com/forums/topic/remove-dropdown-arrows-from-navigation/#post-970396Let me know 🙂
June 27, 2020 at 5:33 pm #1344073Truhi, I’d paste your code into “Additional CSS”, but it does not work.
June 28, 2020 at 9:10 am #1344619LeoStaffCustomer SupportCan you link me to the site in question?
Feel free to open a new topic so you can use the private URL field.
June 29, 2020 at 10:38 am #1346001LeoStaffCustomer SupportTry this:
@media (min-width: 769px) { .menu-item-has-children .dropdown-menu-toggle { display: none; } }
July 24, 2020 at 8:06 pm #1375459JoyHi 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,
JoyJuly 25, 2020 at 1:50 am #1375618DavidStaffCustomer SupportHi 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; } }
July 29, 2020 at 10:33 pm #1381351JoyWorked thanks David!
July 30, 2020 at 1:26 am #1381484DavidStaffCustomer SupportYou’re welcome
August 23, 2021 at 9:19 am #1905657JimThank 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.
August 24, 2021 at 3:53 am #1906469DavidStaffCustomer SupportGlad we can be of help! And thanks for the great feedback!!
March 11, 2023 at 8:34 am #2564157Ravi DixitI 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.
March 11, 2023 at 12:20 pm #2564293LeoStaffCustomer SupportPlease open a new topic for your question as your question is different than the original topic.
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.