Skip to content

Instantly share code, notes, and snippets.

@simoncowie
Last active August 29, 2015 14:22
Show Gist options
  • Save simoncowie/fe76b0d4680ad2a3d6c1 to your computer and use it in GitHub Desktop.
Save simoncowie/fe76b0d4680ad2a3d6c1 to your computer and use it in GitHub Desktop.
Sitefinity - Simple change to fix your fixed nav bars from breaking the page editor
@* This would go into whatever layout / view held the fixed element
This example is for a fixed bootstrap navbar *@
@using Telerik.Sitefinity.Services;
...
@if (SystemManager.IsDesignMode)
{
@:<nav class="navbar navbar-fixed-top editMode">
}
else
{
@:<nav class="navbar navbar-fixed-top">
}
...
</nav>
.navbar-fixed-top.editMode{
position: relative !important;
}

#Sitefinity - Fixed Header in edit mode

This is a simple change to stop your fixed nav bars from breaking the page editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment