Edit Bar is Hiding The Top Section of My Site

Permalink 2 users found helpful
Hello,

I am trying to integrate my site into Concrete5. However, I'm having a problem with the edit bar - namely it is covering up the top section of my site. Here are some images showing what I'm referring to:

Home page when it Is in edit mode: http://screencast.com/t/ODdhMDVmYmY...
Home page when it is Not in edit mode: http://screencast.com/t/MjU3MzAxOD...
Code: http://screencast.com/t/NWY2ZGVmMjM...

What's interesting is that if I place the <?php Loader::element('header_required'); ?> above the javascript then the edit bar disappears altogether.

Any ideas on how to fix this?

Thanks in advanced,

Moshe

 
SteveAtParadigm replied on at Permalink Reply
Not sure if this helps, but here's some code that will move the bg image of your body tag down 50px to compensate for the editing bar:

<?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() . '">'; 
}
?>
MosheSWD replied on at Permalink Reply
Perfect - that did the trick. Thanks.

Just for anyone else's information - I tried using the following code at first and it did NOT work:

<?php
if($c->isEditMode()){
echo('<div style="height:80px; margin-top:50px;></div>"');
}
?>

Again - thanks.
getjoel replied on at Permalink Reply
getjoel
Where does that code go?
adamjohnson replied on at Permalink Reply
adamjohnson
Thanks for the help.