2017-08-13, 03:55:14
from my website
Themes
The toolbar will automatically work on most themes. It is designed to fix itself to the top of the browser window and push the content down 28 pixels.
Themes must call the get_footer() and get_header() functions
Some themes may have issues if there is already a fixed toolbar at the top, themes can custom style these using css selector rules. When the toolbar is present the body receives a custom class of .gs-toolbar. To make css adjustments using this selector in your styles use body.gs_toolbar
Example
/* to push a fixed navbar down when toolbar is present */
body.gs-toolbar .navbar-fixed-top{
margin-top:28px !important;
}
and here is the JS
https://github.com/tablatronix/sa_GSTool...r.php#L434
If you have a better way then let me know, but if its a fixed nav bar there is no way I can think of to override the canvas, maybe there is now.
Themes
The toolbar will automatically work on most themes. It is designed to fix itself to the top of the browser window and push the content down 28 pixels.
Themes must call the get_footer() and get_header() functions
Some themes may have issues if there is already a fixed toolbar at the top, themes can custom style these using css selector rules. When the toolbar is present the body receives a custom class of .gs-toolbar. To make css adjustments using this selector in your styles use body.gs_toolbar
Example
/* to push a fixed navbar down when toolbar is present */
body.gs-toolbar .navbar-fixed-top{
margin-top:28px !important;
}
and here is the JS
https://github.com/tablatronix/sa_GSTool...r.php#L434
Code:
$('body').addClass('gs-toolbar'); // for special theme styling when toolbar is present, body.gs-toolbar elements{}
// add margin to body to push down content
bodytop = $('body').csspixels('margin-top');
$('body').css('margin-top', (bodytop+28)+'px'); //todo: make the height dynamic based on navbar css
If you have a better way then let me know, but if its a fixed nav bar there is no way I can think of to override the canvas, maybe there is now.