Theme Fixed Header in Admin Mode

Permalink 1 user found helpful
Hi,
We have a page that the customer wants a fixed header in. We experience problems with the Admin menu. The first one was the need to adjust z-index so C5 admin menu was not covered.

Now we have the opposite problem. The admin menu covers an "area" where the admin needs to add an image block for the logo.

Is there a css trick that can be used to move the themes fixed header down in admin mode? I assume I can modify the "top" location, but don't know what style rule (combination) to setup.

Thanks,
Sean

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi SeanDevoy,

I recommend reviewing this discussion:
http://www.concrete5.org/community/forums/customizing_c5/trying-to-...
SeanDevoy replied on at Permalink Reply
Thanks MrKD, that was exactly what I was searching for and could not find myself.
siton replied on at Permalink Best Answer Reply
siton
One more option is to add "top margin" to your nav when you are login (by <style> or add extra div). I like this option because my nav like this and C5 header always visible. Works fine even with JS libraries like- http://wicky.nillia.ms/headroom.js/...
<?php 
   $cp = new Permissions($c);
   if ($cp->canViewToolbar()) {   
   ?>
   <style>   
      nav{ 
      margin-top: 47px;
      }
   </style>   
<?php } ?>
SeanDevoy replied on at Permalink Reply
This is also an excellent answer for a programmatic approach. That is to say to include in the page template. Where as the first approach is better for people not comfortable editing PHP as it is handle completely in the CSS.. In my case I am programming/making the template, so this is a better answer.
siton replied on at Permalink Reply
siton
MrKDilkington give me this idea in old post about the same issue :)

You welcome.
jakobfuchs replied on at Permalink Reply
jakobfuchs
+ 1 for efficiency, which is something all programmers strive for.
SeanDevoy replied on at Permalink Reply
This is also an excellent answer for a programmatic approach. That is to say to include in the page template. Where as the first approach is better for people not comfortable editing PHP as it is handle completely in the CSS.. In my case I am programming/making the template, so this is a better answer.