Tagged: header, logo, vertical alignment
I’m new to this theme. I have tried but I can’t find a way to change the vertical alignment of the logo in the header using the Enfold UI. Thank you.
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
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
This works in pages where I’ve disabled transparency in the header, which is fine for my purposes. Thanks.
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
Please close it
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