Twitter Bootstrap .topbar hiding c5 edit buttons when logged in
PermalinkI'm in the process of creating a blank Twitter Bootstrap theme and noticed that the standard Twitter .topbar hides the c5 edit bar.
To get around this, I've used this in the <head> to show it:
<?php // Pushes .topbar down to reveal c5 edit bar when logged in $cp = new Permissions($c); if($cp->canWrite() && $cp->canAddSubContent()){ echo('<style type="text/css">.topbar{margin-top:50px;}</style>'); } ?>
Is this the best way to handle an issue like this?
Cheers
Ben
Cheers
Ben
- c5 edit bar hasn't been an issue since implementing the above
- All the form styles get applied to c5 (which in most cases looks better)
- Some of the headlines seem to get pushed over to the right by about 50px
Still working on it though - block templates and core commerce etc
Cheers
Dan