SSL Labs ScoreSecurityHeaders.io ScoreHSTS Preloaded

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

Sticky Header/Footer

More
2 years 7 months ago #1133 by michael
Sticky Header/Footer was created by michael
In the System - Ad Block Reactor plugin, add the...

If you want to have an unobtrusive message suggesting that users disable their ad blocker, this might be what you're looking for.


In the System - Ad Block Reactor plugin, add the following action:

var bar = jQuery('<div/>')
.css('background-color','#900')
.css('text-align','center')
.css('color','#fff')
.css('padding','10px')
.css('position','fixed')
.css('bottom','0px')
.css('left','0px')
.css('width','100%');
bar.text('We rely on advertisements to monetize the site. Please disable your ad blocker.');
bar.appendTo(document.body);

The code above places the bar on the bottom, but you can easily change it to the top by changing .css('bottom','0px') to .css('top','0px')

The colors can also be easily changed by editing the background-color and color values.

If you used the code above unchanged, it should look like this:

Screenshot_from_20180427_021305_250x36.png

A modified version of this is running on https://gdpr.richeyweb.com

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago - 5 months 3 weeks ago #4305 by Vladimir Chanaev
Hello!
Sorry, but this solution dosen't work for now. I ran a few tests in different browsers - Firefox with «uBlock» and Chrome with «Adblock Plus» but nothing showed up. Also your test site gdpr.richeyweb.com showing no Ad Block warning for now.

Can you help to make it work as expected?
Last edit: 5 months 3 weeks ago by Vladimir Chanaev.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum