[Support request] Remove Dropdown Arrows from Navigation

Home Forums Support [Support request] Remove Dropdown Arrows from Navigation

Home Forums Support Remove Dropdown Arrows from Navigation

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #970391
    Livia

    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.

    #970396
    Leo
    Staff
    Customer Support

    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;
        }
    }
    #970406
    Livia

    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?

    #970544
    Leo
    Staff
    Customer Support
    #1344073
    Tru

    hi, I’d paste your code into “Additional CSS”, but it does not work.

    #1344619
    Leo
    Staff
    Customer Support

    Can you link me to the site in question?

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

    #1346001
    Leo
    Staff
    Customer Support

    Try this:

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

    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

    #1375618
    David
    Staff
    Customer Support

    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;
        }
    }
    #1381351
    Joy

    Worked thanks David!

    #1381484
    David
    Staff
    Customer Support

    You’re welcome

    #1905657
    Jim

    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.

    #1906469
    David
    Staff
    Customer Support

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

    #2564157
    Ravi Dixit

    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.

    #2564293
    Leo
    Staff
    Customer Support

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

    Thanks!

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.