[Support request] Disabling the mobile menu for primary navigation

Home Forums Support [Support request] Disabling the mobile menu for primary navigation

Home Forums Support Disabling the mobile menu for primary navigation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #540277
    Knut

    Hi

    I have been searching in this forum and found php and css code for disabling the menu of the secondary navigation to turn in to the special mobile burger. But I was not able to find out how to disable the primary navigation to change when mobile is used. Could you help with some tips here?

    Brgds.
    Knut

    #540380
    Leo
    Staff
    Customer Support
    #543185
    Knut

    Ho Leo

    Thank you very much for yor fast answer. And I could use it, it works on my site now. So thanks a lot.

    One last think: would it be possible to center align the mobile menu? I have tryied a few different things but with no succes. Ans also the line spacing of the mobile menu?

    Thanks.

    Brgds.
    Knut

    #543417
    Leo
    Staff
    Customer Support

    Try this:

    @media (max-width: 768px) {
        .main-navigation li {
            float: none;
        }
        .main-navigation .main-nav ul li a {
            text-align: center;
        }
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

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