Hope: Logo Change When Scrolling - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Hope: Logo Change When Scrolling

Deich8

Deich8

Template 3 months ago

Hello, How can I make the logo change when scrolling in the Hope template? Best regards, Ingo

0
8 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 months ago #198383

Hi there!

Thanks for reaching out.

Please use the following code in your custom CSS:

#sp-header.menu-fixed .logo img { opacity: 0; }
#sp-header.menu-fixed .logo a { background-image: url(relaunch.deich8.de/images/startseite/knoten2.svg); background-repeat: no-repeat; background-size: contain; }

I have used a random image link from your site, so please replace the image link with your desired one.

Hope this helps!

Best Regards

0
Deich8
Deich8
Accepted Answer
3 months ago #198421

Thank you for the quick reply, it works. Can I also change the menu colors while scrolling? Best regards, Ingo

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 months ago #198515

You're welcome Ingo :)

Here is the sample code:

#sp-header.menu-fixed .sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span{
    color: green;
}

Best regards,

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 months ago #198534

Can I also change the menu colors while scrolling?

Menu items color or Header background color ?? You're webmaster not beginner - use more details.


In general, the key is "#sp-header.menu-fixed" class .menu-fixed that is used for header (in all Helix3 templates) when header is scrolled down and is still visible.

Please copy& paste to your notepad to remember for the future ;)

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 months ago #198537

Actually, .header-sticky class is for Helix Ultimate and .menu-fixed class is for Helix3 in general.

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 months ago #198677

Hello Ingo,

Please let us know if the responses was helpful. And if there are no related issues lefy, you may accept the most useful answer in order to close the post.

Best regards,

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 2 months ago #200923

Hi Ingo,

Didn't hear anything back from you anymore...

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 2 months ago #201062

Thanks for accepting the answer:)

Have a nice day!

0