Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Show second logo on scroll in sticky bottom row header

Home / Forums / Membership Forums / Show second logo on scroll in sticky bottom row header

This topic is: Resolved
[Resolved]
February 18, 2021 at 3:27 am

Hi 🙂

I know that my question maybe is not a part of support but im stuck and maybe someone can help.
I added second logo in bottom row header using html item. The first logo is placed on main row. Moreover the main row is hinding during scroll beacuse only the bottom row setted to sticky
Then im trying to show second logo on scroll by using this:

HTML Item in header:
<img class="SecondLogo" src="SecondLogo.png" />

jQuery added to custom scripts in theme settings:
$(window).scroll(function () {
if ($(this).scrollTop() >0) {
$('.SecondLogo').fadeIn();
} else {
$('.SecondLogo').fadeOut();
}
});

CSS in theme settings:

.SecondLogo {
display:none;
}

Of course its not working so I’m trying to figure it out
I’m not a programmer so I don’t know if there is an easier way to do this.

Thanks for any help.

  • This topic was modified 5 years, 2 months ago by Pawel.
  • This topic was modified 5 years, 2 months ago by Pawel.
  • This topic was modified 5 years, 2 months ago by Pawel.
  • This topic was modified 5 years, 2 months ago by Pawel.
  • This topic was modified 5 years, 2 months ago by Pawel.
  • The forum ‘Membership Forums’ is closed to new topics and replies.