WordPress.org

Support

Support » Plugins and Hacks » Quick Adsense » Use Quick Adsense "quick tags" outside the post

Use Quick Adsense "quick tags" outside the post

  • Is there any way Quick Adsense can detect its tags when they’re used outside the content area (like in a widget)? If not, are there any plans to add this functionality in a future update?

    Support for tags in widgets would help me in conditionally loading different ads based on viewport size (or not loading ads at all). For eg.,

    <script>
         if (window.innerWidth > 1024) { document.write("<!--Ads1-->"); }
     else if ((window.innerWidth < 1024) && (window.innerWidth > 480)) { document.write("<!--Ads2-->"); }
    //this way no ad code is loaded for width less than 480px
    </script>

    I have no coding skills, so I am not sure if the above case is even technically possible. If it is, it’d be nice to be able to use it. 🙂

    Thanks.

    http://wordpress.org/plugins/quick-adsense/

  • The topic ‘Use Quick Adsense "quick tags" outside the post’ is closed to new replies.
Skip to toolbar