[Resolved] Centralize secondary menu on mobile

Home Forums Support [Resolved] Centralize secondary menu on mobile

Home Forums Support Centralize secondary menu on mobile

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #303673
    Rafael

    Hello guys, how you doing?

    I used this topic to hide menu toggle on mobile (https://generatepress.com/forums/topic/secondary-navigation-on-mobile-question/#post-120014) and worked like a charm. But now i want to centralize the secondary navigation only for mobile. Is this possible?

    Regards,
    Rafael

    #303695
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this CSS a shot:

    @media (max-width: 768px) {
        .secondary-navigation {
            text-align: center;
        }
        .secondary-navigation li {
            float: none;
            display: inline-block;
        }
    }
    #306356
    Rafael

    Thanks Tom! πŸ™‚

    #306438
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #2080167
    Keith Taylor

    Hi

    I tried this code to centralise the secondary menu, but it’s not working for me unfortunately – is there some alternative css that might work?

    Many thanks

    Keith
    GeneratePress 3.1.0
    GP Premium 2.1.1

    #2080169
    David
    Staff
    Customer Support

    Hi there,

    this is a really old topic – can you raise a new topic and share a link to your site.

    #2080172
    Keith Taylor

    Ok will do πŸ™‚

    #2080178
    David
    Staff
    Customer Support

    Thank you!

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