• Resolved punkum

    (@punkum)


    Hi,
    I need to turn OFF adsense ads on some pages as Google has/may take exception to them.
    I know how to add the code to the individual page, but the HEADER ad is still showing…

    Can I shut this off too please?

    Thank you,
    Fiona

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Fiona,

    in the wp quads settings you can add a certain post id to exclude ads for that particular page.

    Thread Starter punkum

    (@punkum)

    Hi,
    Can you be more explicit with your explanation?
    WHERE in the settings?

    I have tried the settings at the bottom of a post that says “WP QUADS – Hide Ads” and ticked the ‘Hide all ads on page’ box BUT this is NOT disabling the header ads, only the ‘in-post’ ads.

    I need to disable ALL the adsense ads including header, footer and ‘in post’ and sidebar widgets for a particular page (and a category page isnt a post so cant even use this setting on the category pages even it if did work).

    Further help requested.
    Thank you.

    Hi, you find the option in wp quads general settings, https://take.ms/kMFv9

    Edit: No soory, that’s part of the pro version.

    If you added ads in header oo footer by using one of the php shortcodes the checkbox “Hide all ads on page” should be working.
    How did you include the ads in header?

    Alternatively you could write a condition like:

    if ($post->ID !== 11) {
    echo do_shortcode('[quads id=1]');
    }
    Thread Starter punkum

    (@punkum)

    Thanks –
    I have put the ad in the header by using the “header Ad” option in Extra (divi theme) – just put the adsense code in the box. So I guess WP Quads has no control over this? I cannot see any place to put a header ad in via WP Quads.

    1. re your condition: WHERE would I put this conditional code? In my custom CSS?

    2. How would this work for a ‘CATEGORY’ search/archive page – this is the real issue, as these are not ‘pages’ as such, so I dont think they have an ID. Looking around it

    thanks for any assistance.
    Fiona

    Doing it that way show ads on post id 11 only

    if ($post->ID === 11 ) {
    echo do_shortcode('[quads id=1]');
    }

    Only on pages or posts:

    if (!is_category()) {
    echo do_shortcode('[quads id=1]');
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dont display header ad on some pages’ is closed to new replies.