Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 16h 02m 23s
Claim 50% off
Staff replied Templates

Logo is cutted

Asked by Omo Kobsen 2 years ago Last activity 1 year ago

Hi!
The logo gets cutted when scrolling down (sticky header).
Could you please have a look and help me out?

15 replies

Paul Frankowski Senior Staff

If I may.... I would do that in different way to keep whole, but smaller, logo image on white header:

.is-sticky #sp-header .logo img {max-width: 72px;}
.is-sticky #sp-header .logo {height: 75px; top: 0px; left: 0;}

Please add it inside Template Options > Custom CSS area

Omo Kobsen Asked this

Hi Rashida and many thanks!
Paul, this is exactly what I wanted :) Thank you!

Omo Kobsen Asked this

Is there a war to show another (longer) Logo when scrolled down?

Paul Frankowski Senior Staff

Hopefully no "war" - but I agree, it would be nice to that feature one day.

Omo Kobsen Asked this
2 years ago · edited

I just recognized another creepy behavior. Could you please investigate?

When resize the window the logo is "jumping". The logo should have a fixed point, or?

Paul Frankowski Senior Staff

I saw it. In typical site browse nobody see that. It was designed to be like that "somehow".


That may help a little bit

 @media only screen and (max-width: 1200px) {
  #sp-header .logo img {width: auto;}
}
Rashida Rahman Staff
2 years ago · edited

Hi,

Different logo for sticky header can be achieved with custom CSS. You may check the accepted answer of the similar post:
https://www.joomshaper.com/forum/question/4043

In your case the smple code should be:

#sp-header-sticky-wrapper.sticky-wrapper.is-sticky .logo img { opacity: 0; }
#sp-header-sticky-wrapper.sticky-wrapper.is-sticky .logo { background-image: url(https://fsa.omshots.com/images/2024/03/10/natur.jpg); background-repeat: no-repeat; background-size: contain; }

Please use your desired image link in the above code.

Best Regards

Rashida Rahman Staff

Did that help?

Rashida Rahman Staff

Waiting for your response...

Rashida Rahman Staff

Hi,

Didn't hear anything back from you yet.

Thanks!

Log in to reply.