1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

1.7 Disable Popup Ads

Discussion in 'General Troubleshooting' started by maxmk, Oct 12, 2016.

  1. maxmk

    maxmk Active Member

    Hello Everyone,

    Couple of months ago I was trying an ad platform and enabled popup ads but now I want to disable it but I have forgot where I have added the code. according to ad platform it should be in body or footer but I am unable to find the code anywhere.

    Please help me as the popup ads are still coming.. not sure where to check. The site is http://sitemarks.in
  2. valMETNG

    valMETNG Administrator Staff Member Admin

    The instructions to remove Google's Adsense advertising code (or replace it with your own) are here, but don't forget to follow this important advice. Is that what you're referring to? On your site, I also notice you have a widget with advertising so you might have also put it in the text widget or widget plugins.
  3. maxmk

    maxmk Active Member

  4. valMETNG

    valMETNG Administrator Staff Member Admin

    If it's the advertisement under the search bar, when I turn on Inspect Element (right-click and you should see it in the dropdown), I see this:
    <div class="widget">
    <h4 class="widget_head" id="text_widget_1_head">Advertisement</h4>
    <div class="widget_body" id="text_widget_1_body"><script data-cfasync="false" type="text/javascript" src="//clksite.com/adServe/banners?tid=168122_298604_4"></script><script src="https://clkrev.com/banners/script/bnr-tag_1.0.15.js" type="text/javascript" id="rh_tag_BANNER_168122_298604_4"></script><iframe hid="clkrev.com" allowtransparency="allowtransparency" h="250" w="300" cid="168122_298604_4" htmlname="imgBanner20161014/20161017_041004252_image-banner.cib" scrolling="no" style="width: 300px; height: 250px; border: medium none; max-width: 100%;" src="http://clkrev.com/adServe/imgBanner20161014/20161017_041004252_image-banner.cib?tid=168122_298604_4&amp;num=1&amp;w=300&amp;h=250&amp;orig_url=http%3A%2F%2Fsitemarks.in%2F&amp;ref_url=A1&amp;keywords=Indian%20Social%20Bookmarking%2C%20Indian%20Social%20News%20Website%2C%20Social%20Bookmarking&amp;ap=cmp%3DBANNER%26evp%3DJ8WiVuf2XZZu1oRdH92faCxq6YdBHXDJjzqiYwzFZYcPa0Jz1V0kSwLlc_nAqKIN%26tip%3DAll%20Posts%20%7C%20Sitemarks.in" id="rhfrm_168122_298604_4" name="rhfrm_168122_298604_4" frameborder="0"></iframe></div>
    If you use an IDE to maintain your code like NetBeans (and if you don't, I highly recommend it), you can search your entire code base in seconds for phrases like:
    h4 class="widget_head"
    ...and that should reveal which file you placed it in.


    I also see this code at the bottom of your page:
    <div style="bottom: 5px;" id="rhw_dispunit" class="rhw_dispunit_common rhw_dispunit_728x90"><div id="rh-bnr-wrp_168122_298604_5"><iframe hid="clkrev.com" allowtransparency="allowtransparency" h="90" w="728" cid="168122_298604_5" htmlname="imgBanner20161014/20161017_041005169_image-banner.cib" scrolling="no" style="width: 728px; height: 90px; border: medium none; max-width: 100%;" src="http://clkrev.com/adServe/imgBanner20161014/20161017_041005169_image-banner.cib?tid=168122_298604_5&amp;num=1&amp;w=728&amp;h=90&amp;orig_url=http%3A%2F%2Fsitemarks.in%2F&amp;ref_url=A1&amp;keywords=Indian%20Social%20Bookmarking%2C%20Indian%20Social%20News%20Website%2C%20Social%20Bookmarking&amp;ap=cmp%3DFOOTER%26evp%3DJ8WiVuf2XZZu1oRdH92faCxq6YdBHXDJjzqiYwzFZYcPa0Jz1V0kSwqRtHPRcEpo%26tip%3DAll%20Posts%20%7C%20Sitemarks.in" id="rhfrm_footer_168122_298604_5" name="rhfrm_footer_168122_298604_5" frameborder="0"></iframe></div></div>
    So if that's what you're looking for, you can search on terms like rhw_dispunit to find the file. My bet is, assuming your current theme is in the default directory, you'd find that code in \content\themes\default\footer.php or \content\themes\default\index.php.
    Last edited: Oct 17, 2016

Share This Page