Title: Header fixed position again
Last modified: August 30, 2016

---

# Header fixed position again

 *  [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/header-fixed-position-again/)
 * The header fixed position was referred to on this Post
    [](https://wordpress.org/support/topic/header-bar-fixed-position-optional?replies=5)
 * The Cookie Law Info banner was working flawlessly until I upgraded it from 1.2.1
   to 1.4.3. After the upgrade I found that the banner covered the top part of the
   website header. On reading the post above, I commented out the fixed position
   on line 86 in /js/cookielawinfo.js:
    //hdr_args[‘position’] = ‘fixed’;
 * My question is: why has the fixed position been implemented? Will my commenting
   out interfere with my website in any way?
 * Thank you.
 * [https://wordpress.org/plugins/cookie-law-info/](https://wordpress.org/plugins/cookie-law-info/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297547)
 * Hi, no that will not affect your website, all it does is remove position:fixed.
   I’ll add a setting to switch this on/off in the next release.
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297548)
 * Thanks, very much appreciated.
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297718)
 * Hi, this feature has now been added- you can switch it on or off in the plugin
   settings.
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297719)
 * Many thanks for letting me know.
    Best regards
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297745)
 * I am afraid I have to come back here. I upgraded the plugin to the latest version
   on my test site to see how it behaves. Unfortunately the same problem reappeared–
   the bottom of the cookie bar overlays the top of the header. I tried with both
   fixed position off and on to no avail.
    So I won’t be upgrading the plugin on
   my real sites yet – currently on 1.4.1 with the commented out line on position
   fixed in /js/cookielawinfo.js.
 * Thank you.
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297747)
 * Hi, ok I see what you’re looking for. There are 2 parts to this: the post you
   referred to was asking to fix the cookie bar to the header, so that even if you
   scroll the page the cookie bar stays at the top: that was the feature added in
   1.5.2. The second part is that you would like the header to push down the page
   content rather than overlay it. I’ll add that feature very soon. All the best,
   Richard
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297748)
 * Thanks very much for this.
    Just to make sure that there are no misunderstandings.
   The cookie bar displays correctly in the version I am using (not the upgraded
   one) – I am using the non-fixed position. In the upgraded version the bottom 
   of the cookie bar overlays the top of the header. So what I am wondering about
   is what changed in the upgrade to cause this. In any case it is not the question
   of the header pushing down the page content – rather, it is the question of the
   cookie bar to be displayed above the header without overlaying the top of it.
   Thanks.
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297749)
 * No problem- we’re talking about the same thing. The update in 1.5.2 changed the
   way the cookie bar is technically inserted into the web page (i.e. the way the
   code works), so that it has greater compatibility with other themes and plugins.
   A side effect of that was the way the cookie bar overlays the header content 
   on some themes. That fix will be published soon- check the changelog for details
   when a new version goes out.
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297750)
 * Thanks very much for your excellent support.
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297780)
 * Hello,
 * it seems that the overlay problem hasn’t been fixed yet. I am still on version
   1.4.1 with the commented out line on position fixed in /js/cookielawinfo.js.
 * Any news on the overlaproblem?
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297781)
 * It’s in development and working, but I only release new versions of the plugin
   when I have time to support a new version and unfortunately I am extremely busy
   right now. It’s coming though… 🙂
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297791)
 * Hello,
 * I know that that you haven’t released the new version of the plugin to resolve
   the overlay problem yet. My question is if it is safe for me to continue using
   version 1.4.1 with the commented out line as specifies above.
    Thank you.
 *  [E R](https://wordpress.org/support/users/e-r/)
 * (@e-r)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297793)
 * Any update on this?
 * I’m interested too in the header placement of the cookie bar, but without the“
   sticky” component and without covering the site content (right now the sticky
   bar covers my main menu). I just need it to appear before / on top of my content,
   so it just needs to “push” the content below.
 * Thanks!
 *  Thread Starter [mica123](https://wordpress.org/support/users/mica123/)
 * (@mica123)
 * [10 years ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297801)
 * Hello Richard,
 * it seems that the overlay problem with the header has not been fixed yet.
    Can
   I comment out something in your code to make it go away? Or can I stay safely
   with version 1.4.1 with the commented out part of the code? Thank you.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Header fixed position again’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [mica123](https://wordpress.org/support/users/mica123/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/header-fixed-position-again/#post-6297801)
 * Status: not resolved