Menu icon Foundation
How to disable js-off-canvas-overlay ?

Hi, how I can disable showing js-off-canvas-overlay on trigger side menu with of-canvas?

I know I can do it via css, but if there some css style?

Also, where I can find this info my self? I mean how I can do it via your documentation?

overlayoff-canvasjscssclassdisable

Hi, how I can disable showing js-off-canvas-overlay on trigger side menu with of-canvas?

I know I can do it via css, but if there some css style?

Also, where I can find this info my self? I mean how I can do it via your documentation?

Rafi Benkual over 2 years ago

Using the data attributes you can turn it off

data-content-overlay="false"

Eugene over 2 years ago

 @ Rafi Benkual

Thank you =)

Mhairi Longmuir about 2 years ago

Thanks, how would I actually add this code? I have to edit this?...

 

<script>$(document).foundation();</script> 

 

Or do I add it to one of the divs? (From this page: https://zurb.com/university/lessons/oh-behave-control-your-behavior-with-foundation-s-data-attributes)

(I tried that but it didn't work, but I might be adding it to the wrong div?...)

 

Please help!