#Sitefinity - Fixed Header in edit mode
This is a simple change to stop 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.