Sticky nav bar not working when screen width is under 991px

4 replies · opened Jul 4, 2020

Llsualeng13Jul 4, 2020

Responsive sticky nav bar is not working when screen width is under 991px.
I haven't done anything to the html yet. The nav bar is minimized normally but
it is not sticky when scrolling down.

How can I fix this? Thanks.

SSemicolon WebSTAFFJul 4, 2020

Hello,

The Sticky Headers are not enabled by default on Mobile Devices. Simply add the data-mobile-sticky="true" Attribute to the #header Element to make the Headers sticky on Mobile Devices.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Llsualeng13Jul 4, 2020

It still not working for me. I put it in the index.html just like this

<header id="header" id="data-mobile-sticky="true"" class="transparent-header floating-header header-size-md">

What am I missing here? Thanks

PS. Where can I find documentation about (data-mobile-sticky="true"). Can't seem to find it in documentation section.

Llsualeng13Jul 4, 2020

Sorry. Got it now. Thanks!

But where can I find documentation about (data-mobile-sticky=”true”)? Can’t seem to find it in documentation section.

SSemicolon WebSTAFFJul 5, 2020

Hello,

Apologies about this! Some of Our Documentations are still under development but we are frequently updating and adding more Documentations. Consider checking this Documentation on Sticky Headers: http://docs.semicolonweb.com/docs/header/sticky-header/ .

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard