[Resolved] sticky logo and navigation alignment

Home Forums Support [Resolved] sticky logo and navigation alignment

Home Forums Support sticky logo and navigation alignment

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #413807
    Moses

    Hey, I had a similar problem before and was given this snippet:

    .main-navigation.navigation-stick .navigation-logo {
        float: right;
    }
    
    .nav-aligned-center .main-navigation.navigation-stick {
        text-align: left;
    }

    But It’s not working for me this time.
    I want my sticky logo to float right, and my sticky navigation to float left. site is RTL

    #413919
    Leo
    Staff
    Customer Support

    Hi there,

    Is the navigation location set to align center?

    #414092
    Moses

    No. it was set to left,

    now I re-added the above snippet and made it centred aligned so you can check it again please

    #416005
    Moses

    anything?

    #416116
    Leo
    Staff
    Customer Support

    Oops sorry not sure how this slipped through.

    Can you activate the sticky navigation again?

    Thanks!

    #416164
    Moses

    Done

    #416216
    Leo
    Staff
    Customer Support

    Can you try this method? https://docs.generatepress.com/article/navigation-logo/#navigation-as-header

    I believe this is the look you are going for.

    Let me know 🙂

    #416464
    Moses

    Hey Leo, the floats are still swapped, navigation on the right and logo on the left and I want them exactly the opposite

    #416595
    Leo
    Staff
    Customer Support
    #416604
    Moses

    Tried, no change (you can check now it’s aligned to the left)

    #416614
    Leo
    Staff
    Customer Support

    You have this CSS added which is making the logo on the left side:

    .main-navigation .site-logo.navigation-logo {
        position: absolute;
        left: 0;
        top: 0;
    }

    Try right: 0;

    I’ll check with Tom why the align left isn’t working.

    #416626
    Tom
    Lead Developer
    Lead Developer

    1. Add this CSS:

    .rtl .main-navigation li {
        float: left;
    }

    2. Remove this CSS you’ve added:

    .main-navigation .site-logo.navigation-logo {
        position: absolute;
        left: 0;
        top: 0;
    }

    And replace it with this:

    .main-navigation .site-logo.navigation-logo {
        position: absolute;
        right: 0;
        top: 0;
    }
    #416886
    Moses

    Thanks tom and leo !

    #417210
    Tom
    Lead Developer
    Lead Developer

    You’re welcome!

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