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

Making the top bar sticky also

Asked by Peter Dowse 2 years ago Last activity 2 years ago

Hi Guys,

We have this site in development https://abolishpest.com.au/joomla5/

I would like to make the top bar area (where the logo and phone number is) also sticky - at the moment it's only the menu structure that is sticky.

How would I go about doing this?

Accepted answer

Marked as the solution
Ziaul Kabir Staff

Hello,

Thank you for your reply. We have set the header to be sticky when enabled from the template options. On your site, the header is already sticky, and I have also made the top bar sticky along with the header. If you do not want to keep header sticky offset, then please go to your admin dashboard and follow this:

system -> Site Template Styles -> Template Options -> Basic -> Header -> Sticky Offset -> put here 0

then click save.

Is there anything that I can help you?

Thanks!

3 more replies

Ziaul Kabir Staff

Hi there,

Thanks for reaching out to us.

please try this css into your custom css to achieve it:

#sp-header{
    margin-top: 78px;
}
#sp-header.header-sticky {
 {
    margin-top: 0;
    position: fixed;
    top:78px !important;
}
#sp-top-bar {
    position: fixed;
    z-index: 9999;
    width: 100%;
    top: 0;
}

For add custom css you can follow this guide: https://www.joomshaper.com/documentation/helix-framework/custom-code-css-js-meta

Hope this helps!

Best Regards

Peter Dowse Asked this

Hi Ziaul,

Many thanks for this solution.

That worekd a treat.

One additional question - what's the best method for making the #sp-header also stay fixed as it's moving behind the top bar on scroll.

If possible, I would like both the top bar and the header areas to be fixed.

Peter Dowse Asked this

That worked, however, I did need to add position:fixed; to #sp-header as there was no sticky offset in this template.

Thanks for your assistance - got it working well now.

Greatly appreciated.

Ziaul Kabir Staff

You are welcome.

Log in to reply.