• Resolved chrisedwards72

    (@chrisedwards72)


    Hello

    Very strange thing has occurred today – the header ads widget has vanished from the available widgets. I noted it only after realizing that one of the banner ads I had added in the page was not displaying.

    I have checked that the Header Ads option is ON in the theme section and that it has been saved and this is set to display header ads.

    The Footer ads widget has also vanished from the list of available widgets.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter chrisedwards72

    (@chrisedwards72)

    I have solved the problem!

    The culprit was the ABP AdBlock Plus Firefox plugin. To solve this issue – click the option drop-down on the ABP icon (in the browser window) and make sure that you have disabled it on the site you are working on – kind of obvious I know but I did not expect it to disable the actual available widgets in the WP dashboard.

    Disabling the ABP will re-instate your Header and Footer widgets ??

    Would be nice to fix this in the theme so that abp would not recognize this as an ad widget. Could be used for other content other than ads.

    I think I managed to allow this to display even if you have adblock on.

    Copy the header.php file into your child theme.

    Change:

    <div id="header-ads">

    to:

    <div id="header-widget">

    Then add this to your child/custom css:

    #header-widget { float: right; }
    #header-widget h3 { display: none; }
    #header-widget img { display: block; }

    Just to clarify, this allows the actual widget to display for visitors that have adblock on. (I guess, unless you actually put ad code in there.)

    You will still need to disable adblock on your own browser to view the widget editor in the backend.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    That’s a nice fix. I think the author should be careful not to compete with the development of this browser addon.

    Thanks Andrew, I agree with you about the author making changes. I’m personally not using it for ads, so I think if you’re not using ads there, my code should be enough of a fix.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Header Ads Widget Has Vanished’ is closed to new replies.