is the top 60 pixels reserved exclusively for the dashboard?

Permalink
i have been fighting with the menu bar in 5.5.

it keeps blocking the the top of my page . if there is nav menu there, its covered.

if there is header content there, its covered .

so when designing my theme do i just have to figure that i need not make use of the top 60- 80 pixels ?

i have tried the header and the footer fixes i have seen posted here none of them made a difference .

is their a super secret css hack to kick the menu out of the way ?

or the is css for the menu conflicting with absolutely positioned elements ?

just something so i can modify content at the very top of a page.

 
Mainio replied on at Permalink Reply
Mainio
If you just want to bypass this issue without having to modify how your theme currently works, you could just add this to your theme's header:
<?php if ($c->isEditMode()) : ?>
<div style="height:49px">&nbsp;</div>
<?php endif; ?>


That pushes the content down only in edit mode for your theme.

And if you want to push it below the quicknav as well, add another 32px to that.
chaos4u replied on at Permalink Reply
Thanks for the quick response i haven't fully tested it but it looks
promising.

once i retry the top nav again ill know for sure but i can see the header now , where as before it was covered.


Thanks Again :)
Mainio replied on at Permalink Reply
Mainio
No problem. I'm not 100% sure but that might work only when you're actually in the edit mode (i.e. you have clicked the edit-button and entered the edit mode). If that is the case and you want to also push down the edit bar when not in that mode that is also doable but just requires you to check whether the logged in user has edit access on that page.
JohntheFish replied on at Permalink Reply
JohntheFish
You usually need a bit more than an edit mode test because the dashboard toolbar shows when logged in, but not yet editing.

In php/html:
$cp = new Permissions($c);
if ($cp->canWrite() || $cp->canAddSubContent() || $cp->canAdminPage()){
// add shim


Yet Greek Yogurt does not do this, so I suspect there is a better way hidden somewhere inside that theme.
chaos4u replied on at Permalink Reply
thanks john . i wished i was not so ignorant, im not sure where your code goes .

im sure i will figure it out, i will have to look a bit more in depth into c5 .

as i posted below though it looks like the fix is going to be to relayout the style sheet .


thanks for your time and help i appreciate it.
chaos4u replied on at Permalink Reply
thanks for the help Mainio . implemented the layout with the nav bar at the top . still did not push it down . (it does allow for more to be seen though and it is more than i had before. and with further experimentation if bring the bar down 20 or 30 pixels i can use your fix and then be able to edit it)

looking at other themes and trying to figure out whats different with mine. it appears my theme is not c5 friendly, (everything is laid out absolutely) so im going to go back to the drawing board and see if i can get it to work under c5 properly .


Again thanks for your time i appreciate it .
Mainio replied on at Permalink Reply
Mainio
You should replace the if-clause in my first example with John's example. That is actually exactly what I tried to explain in my 2nd message above.