Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1434129
    #1434155

    Hey fogelfish,

    Thank you for the inquiry.

    The theme automatically centers the logo vertically relative to header height, but if you need to adjust the vertical alignment, you can add this css code.

    .logo img, .logo svg {
        position: relative;
        top: 100px;
    }
    
    .logo, .logo a {
        overflow: visible;
    }

    Adjust the value of the top property as you wish.

    Best regards,
    Ismael

    #1434229
    This reply has been marked as private.
    #1434411

    Hi,

    Thank you for the update.

    We made slight adjustments to the css code so that it also takes into account the top position of the logo when the header has shrunk or when scrolling. Please use this updated css code instead.

    .logo img, .logo svg {
      top: 15px;
    }
    
    .header-scrolled .logo img, .header-scrolled .logo svg {
      top: auto;
    }

    Best regards,
    Ismael

    #1434451

    This works in pages where I’ve disabled transparency in the header, which is fine for my purposes. Thanks.

    #1434496

    Hi,

    Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1434544

    Please close it

    #1434562

    Hi,

    Thanks for letting us know, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘vertically center logo in header’ is closed to new replies.