WordPress.org

Forums

WP Cookie Banner
Push Main Page Content (4 posts)

  1. JJUKJJ
    Member
    Posted 1 year ago #

    Thank you for making this plugin available. I have slightly changed the CSS to give a flatter appearance. I would like to go one step further and have the banner push the page content down (when used in the top position) so that it appears above all current content until closed or timeout. I have seen it done elsewhere for cookie consent banners but haven't been able to find a way to make yours do the same. What code should I modify and in what way to make this happen?

    Many thanks!

    http://yourvoiceparty.org.uk

    https://wordpress.org/plugins/creare-eu-cookie-law-banner/

  2. bavington
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi JJUKJJ, is it our banner you currently have installed at the moment on your link above? Are you essentially just looking to nudge the entire body contents below the banner rather than be absolutely positioned on top?

    James.

  3. JJUKJJ
    Member
    Posted 1 year ago #

    Hi James,

    Thanks for coming back to me. I had your banner installed until lunchtime yesterday. Unfortunately time constraints meant I had to find another plugin (I should have launched YOURvoice on Monday!). I'm sure WP Cookie Banner would have been perfect had I been a more competent coder.

    You understood correctly. I was looking to nudge the entire body contents below the banner rather than have the banner be positioned on top. I felt that this would have been more consistent with modern flat design ideals. You'll see that 'Cookie Law Info' which I am now using does exactly that. I'm still interested to hear your answer though so that I can learn for the future.

    And you may like to take a look at the video on the home page of my website. Hopefully you'll be seeing and hearing a good deal more about YOURvoice http://yourvoiceparty.org.uk in the run up to the 2014 European Parlimentary elections!

    Julian

  4. bavington
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hey Julian,

    Sorry about the delay in getting back to you. Yes basically it would have just been a little fiddling required with the JavaScript to ensure the banner appears as the first thing after the opening body tag, rather than at the end (which is where the JavaScript puts it now).

    In theory you would have had to hacked the JS file in order to make it change where it comes out. It's quite a valid point though - I Think now for 0.2 I'll add an option to choose from different locations for the banner.

    Thanks so much for your feedback.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Cookie Banner
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic