Support » Plugin: Quick Adsense » Blocking ads in woocommerce single products

  • Hi, I would like to block all ads in my woocommerce single products.

    I only blocked them when unchecking the Posts box in the setting area. However, it blocks ads to be shown in Posts, which I would like to keep.

    Is there any code or way to block ads only in woocommerce single products? Maybe coding in php individually?

Viewing 1 replies (of 1 total)
  • Ok what I did that I add div and add class to ads. Try it..

    Add this to Quick Adsense ads block.

    <div class="hide-me">YOUR AD CODE</div>

    And then open your Woocommerce single product file, and add this;

    <style type="text/css">
    .hide-me { display: none; }
Viewing 1 replies (of 1 total)
  • The topic ‘Blocking ads in woocommerce single products’ is closed to new replies.