• Resolved therealkarlos

    (@therealkarlos)


    Hi – I have an ad widget in my sidebar and it works fine on my home page and posts. but my search page that has the same sidebar does not show the ads. I’ve used the AdCheck tool and there are no ad placeholders being inserted on my search page sidebar.

    Any help appreciated.

    Regards

    Karl

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Karl,

    per default automatic ads are injected on post_types posts and pages.
    I assume the search pages on your website is another post_type.

    It also might be possible that you need to enable the category option there.
    Is this helping?

    Thread Starter therealkarlos

    (@therealkarlos)

    Hi – The visibility checkboxes are set checked for Homepage, Categories, Archives and Tags. And PostTypes is set to Page & Post.

    I don’t believe the search page is a different post type.

    Hi @therealkarlos,

    i checked it. Ads are disabled per default on search pages.

    Please update to latest wp quads version 1.6.1. Than you can overwrite this behavior by adding the code below in your functions.php:

    function prefix_show_ads_on_search_page($showads){
     if (is_search()){
       $showads = true;
     } 
    return $showads;
    }
    add_filter('quads_show_ads','prefix_show_ads_on_search_page');
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ads don’t show in sidebar for a search page’ is closed to new replies.