How to get Logo to Show in Navbar when scrolling Down

Hello,

my website is valueadd.us and I am using the Ethos stack.

As i scroll down the site, i want my logo to show up in the nav bar on the top left.

I’ve updated to the pro theme and am wondering how can i make that happen?

I’ve tried changing my Header settings by going to Theme Options>Header>Layout>Inline but the Header moves from the middle of the page and doesn’t fit into the left section of the navbar when scrolling.

Thank you

Hi There,

  • Please add this custom JS under Theme Options > JS:
jQuery( function($) {
	var logo = $("a.x-brand.img").clone();
	$(".x-navbar-inner .x-container").prepend(logo);
});
  • Please add this custom CSS under Theme Options > CSS:
.x-navbar-inner .x-container.max.width {
    width: 100%;
    max-width: 100%;
}

.x-navbar-inner a.x-brand.img {
    max-width: 150px;
    position: absolute;
    top: 5px;
    opacity: 0;
    transition: all 0.5s ease;
}

.x-navbar.x-navbar-fixed-top a.x-brand.img {
    opacity: 1
}

Hope that helps and thank you for understanding.

Thank you!

You’re welcome!
We’re glad @Thai were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.