Title: Responsive header ads doen&#039;t work
Last modified: August 31, 2016

---

# Responsive header ads doen't work

 *  Resolved [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/)
 * Tried to add google responsive ad to header but it doesn’t work. It says not 
   enough space.
 * WordPress 4.5
    Hueman 3.0.10

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277675)
 * Hi msfndotorg. Welcome to the Hueman forum. Can you post a link to your site?
   Thanks.
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277682)
 * Thanks bdbrown. Sure, it is [http://www.msfn.org](http://www.msfn.org).
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277683)
 * I just inspected source and it says:
 * Uncaught TagError: adsbygoogle.push() error: No slot size for availableWidth=
   0
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277711)
 * The header ads container should expand automatically to accommodate the ad. How
   long have you had the ad code in there?
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277722)
 * Since yesterday. It worked with Hueman v2. Static size ad works witout problem.
 * Chrome Inspect says this:
 *     ```
       Uncaught TagError: adsbygoogle.push() error: No slot size for availableWidth=0
       count.js:7 Uncaught TypeError: Cannot read property 'split' of undefined
       ```
   
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277740)
 * > Tried to add google responsive ad to header but it doesn’t work
 * That’s what you posted 3 hours ago. And now you’re saying it was working yesterday
   in v2? So did you just try to add it after upgrading t0 v3.0.10, or was it working
   and stopped when you upgraded?
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277743)
 * I just upgraded to 3.0.11 and yes it stopped showing up after upgrade to version
   3. Doesn’t work because of theme css but i can’t figure it out.
 * [https://wordpress.org/support/topic/adsbygooglepush-error-no-slot-size-for-availablewidth0-blank-ads-solution?replies=1](https://wordpress.org/support/topic/adsbygooglepush-error-no-slot-size-for-availablewidth0-blank-ads-solution?replies=1)
   
   [http://stackoverflow.com/questions/33096300/max-width-not-working-for-div-created-for-google-adsense-ad](http://stackoverflow.com/questions/33096300/max-width-not-working-for-div-created-for-google-adsense-ad)
   [http://www.slideshare.net/prowebguru/solution-to-uncaught-tag-error-in-google-adsense-advertisement](http://www.slideshare.net/prowebguru/solution-to-uncaught-tag-error-in-google-adsense-advertisement)
 * In fact it is known problem.
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277744)
 * Figured it out.
 * Just add this to your child theme custom css
 *     ```
       @media only screen and (max-width:3000px) {
           #header-ads {
               width: 800px;
               height: 90px;
           }
       }
       ```
   
 * Adapt to your theme. Adsense need to know exact width.
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277745)
 * Btw, still issues, ads doesn’t show on mobile.
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277747)
 * > In fact it is known problem.
 * That’s interesting; hasn’t been an issue with the theme in the past.
 * > ads doesn’t show on mobile.
 * That’s because they’re hidden on mobile views to save space. This in the CSS 
   in responsive.css:
 *     ```
       @media only screen and (max-width: 1200px) {
           #header-ads { display: none; }
       }
       ```
   
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277752)
 * Thanks bdbrown.
 *  [MrMountain](https://wordpress.org/support/users/mrmountain/)
 * (@mrmountain)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277788)
 * To keep header-ads widgets on mobile/smaller screens, just add this code to your
   custom CSS
 *     ```
       @media only screen and (max-width: 1200px) {
         #header-ads {
           display: block !important;
         }
       }
       ```
   
 *  Thread Starter [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * (@msfndotorg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277815)
 * Thanks MrMountain!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Responsive header ads doen't work’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [msfndotorg](https://wordpress.org/support/users/msfndotorg/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/responsive-header-ads-doent-work/#post-7277815)
 * Status: resolved