[Support request] Changing Mobile Header Logo Alignment

Home Forums Support [Support request] Changing Mobile Header Logo Alignment

Home Forums Support Changing Mobile Header Logo Alignment

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • #412238
    Ohad

    Hello,

    I want to change the position of the my Mobile Header Logo,
    To be in the Center of the Sticky Mobile Header, between the Search icon and the Menu Icon.

    Instead of the current situation,
    when The Mobile Header Logo is on the right site.

    Thanks,
    Ohad

    #412444
    Leo
    Staff
    Customer Support

    Hi there,

    So only at sticky header you want this change?

    #412506
    Ohad

    Hey Leo,

    In the sticky header and in the top header. in mobile view only.

    Thanks,

    #412588
    Leo
    Staff
    Customer Support
    #414784
    Ohad

    Hey Leo,

    I’ve followed your link,
    and successfully centered the mobile logo header.

    But because i have a multi language website ENG/HEB (Done via the Polylang Plugin),
    The Alignment works only on the HEB version of the site.

    How i can set the mobile logo header alignment, also to the ENG version of the site?

    #415029
    Leo
    Staff
    Customer Support

    Just checked your site and don’t see the logo?

    #415396
    Ohad

    Hey Leo,

    I temporarily disabled it until we fix the alignment in both languages.

    Can you please Check Now?

    #415636
    Leo
    Staff
    Customer Support

    Try the CSS like this:

    body.rtl #mobile-header button.menu-toggle {
        position: absolute;
        right: 0;
        left: auto;
    }
    body:not(.rtl) #mobile-header button.menu-toggle {
        position: absolute;
        left: 0;
    }
    #416151
    Ohad

    Hey Leo,

    Still no luck,
    The Alignment works only on the HEB version of the site.

    #416215
    Leo
    Staff
    Customer Support

    I still see this CSS being added:

    #mobile-header button.menu-toggle {
        position: absolute;
        right: 0;
    }

    That’s different than what I have above.

    #416259
    Ohad

    Hey Leo,

    I left the old css code,
    Because i can’t alignment the mobile logo header at all, with the last css you wrote me.

    Do you want me,
    To leave it there anyway for you to check it?

    #416340
    Leo
    Staff
    Customer Support

    Yes please ๐Ÿ™‚

    #416358
    Ohad

    Done ๐Ÿ™‚

    #416385
    Leo
    Staff
    Customer Support
    #416388
    Ohad

    I’ve Added the following CSS:

    #mobile-header .site-logo {
        position: absolute;
        left: calc( 50% - 90px); /* 50% from the left - half your image width */
    }
    
    #mobile-header button.menu-toggle {
        position: absolute;
        left: 0;
    }
    
    body.rtl #mobile-header button.menu-toggle {
        position: absolute;
        right: 0;
    }
    #mobile-header button.menu-toggle {
        position: absolute;
        left: 0;
    }
Viewing 15 posts - 1 through 15 (of 30 total)
  • You must be logged in to reply to this topic.