another way is to toggle the dnn #ControlBar or the #dnnCPWrap if you´re using the RibbonBar. Should work with every fixed navbar.
Create a small button in the top left corner. Style the anchor to fit your needs.
$(document).ready(function () {
var moTtoggleButton;
if(('#ControlEditPageMenu').length > 0 ) { // FOR CONTROLBAR DNN7 and up
moTtoggleButton = '<ul class="dnnActions dnnClear">';
moTtoggleButton += '<li class="moTtoggleButton"><a href="javascript:void(0)" onclick="$(\'#ControlBar\').toggle();">toggle menu</a></li>';
moTtoggleButton += '</ul>';
$('#ControlBar_ControlPanel').before(moTtoggleButton)
}
if(('#dnnCPWrap').length > 0) { // FOR RIBBONBAR
moTtoggleButton = '<ul class="dnnActions dnnClear">';
moTtoggleButton += '<li class="moTtoggleButton"><a href="javascript:void(0)" onclick="$(\'#dnnCPWrap\').toggle();">toggle menu</a></li>';
moTtoggleButton += '</ul>';
$('#dnnCPWrap').before(moTtoggleButton)
}
});
some button styling
.moTtoggleButton{
z-index: 10001 !important;
background-color: #FFFFFF;
position: fixed;
top: 0;
left:0;
}
.moTtoggleButton > a {
display: inline-block;
font-weight: 700;
padding: 10px 15px;
}
update:
changed position: absolute; to position: fixed;
added href="javascript:void(0)" to anchor tag