![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/dd8a7951ddc458f9e92259a96cabdf4d-87a1c39.jpg)
I am noticing that the top black admin bar is covering some of the design of the page. For instance I made a fixed/sticky header and as I scroll down half of the header is behind the top admin bar.
Lets see if an image in my Dropbox shows up: https://www.dropbox.com/s/2acl2wf00vsso5k/beans-top-admin-bar.png?dl=0
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/c70294be72623e3f8995ee4832f8d065-87a1c39.jpg)
Hi Paal,
That is caused by the admin bar being a fixed position and the sticky header being set with 0 offset. What I would suggest is to add an offset only when the admin bar is showing to prevent this behaviour. Here is an example snippet to do so:
$offset = ( true === is_admin_bar_showing() ) ? 32 : 0;
beans_add_attribute( 'beans_header', 'data-uk-sticky', "{top:$offset}" );
Happy coding,
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/dd8a7951ddc458f9e92259a96cabdf4d-87a1c39.jpg)
Thanks Thierry
It is only for the offline development version I am having this problem. I am using Desktop Server. I am not getting the code to work on the site. It might be that specific site though.
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/c70294be72623e3f8995ee4832f8d065-87a1c39.jpg)
Hi Paal, could you share the code you are using to make the header sticky, it will help to identify where the issue lies?
Thanks,
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/dd8a7951ddc458f9e92259a96cabdf4d-87a1c39.jpg)
Hey Thierry
I am using the code posted here: https://community.getbeans.io/discussion/enable-a-sticky-header/
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/c70294be72623e3f8995ee4832f8d065-87a1c39.jpg)
Thanks, so the code snippet I provided above should work fine. If you can share a link to the page, I will gladly to take a look at what the issue could be 😉