Moving the body tag in edit mode idiosyncracy

Permalink
Hi,

I'm using this excellent piece of code I got somewhere (can't remember where) to move the body tag down 50px.

<?php 
$cp = new Permissions($c);
if($cp->canAdmin() && $cp->canAddSubContent()){ 
echo '<body style="background-position: 0 50px;" class="' . $c->getCollectionHandle() . '">'; 
} 
else{ 
echo '<body class="' . $c->getCollectionHandle() . '">'; 
}
?>


The trouble is when I log in it works properly but when the client, who is an admin logs in, it has the ugly white gap at the top.

I'm guessing it's something to do with this line
if($cp->canAdmin() && $cp->canAddSubContent()){
ans it seems only to talk to the super admin or something.

I'd like to fix it so that anyone who logs in doesn't see the big white gap please.

Any ideas?

Nige

nige
 
wildapple replied on at Permalink Reply
wildapple
This is an old post so perhaps you've got it all figured out now but I found this blog post with an excellent method of moving down bg.

http://defunctlife.com/2010/06/concrete5-edit-bar-is-in-the-way-how...
Responsive replied on at Permalink Reply
Responsive
Hi

Should we still need to perform the above. I understood that the toolbar should push all elements down as well as the body ?

Am asking this as I have problem with background image on body element not moving down when signed in.
Responsive replied on at Permalink Reply
Responsive
Can anyone reply on the above as I thought the toolbar issue was fixed in 5.5.1.

It seems that in 5.5.1 the toolbar overlaps the body tag , say if you have an image repeated at the top in the Body tag then when logged in the image sits behind the toolbar.

In the last Totally Random 2/10/2012 it was mentioned that this has been fixed ?