Categories: google

Solution To Uncaught TagError In Google Adsense Advertisement

Recently I upgraded my theme version and after updating I faced following issue to one of the adsense ad displayed on my website.

Uncaught TagError: adsbygoogle.push() error: No slot size for availableWidth=0

Basically there was one ad and there might be some style changes due to which my google adsense ads were not displayed. It was showing error “No slot size for availableWidth=0”.

google logo icon picture

This error occurs when google adsense ad code is trying to insert ad and if it doesn’t find proper width to the parent container where its trying to insert ad.

I am using Mesocolumn theme and it was showing above error. Google adsense ads were not displayed only for Desktop version of the website. For mobile version it was showing proper ads. So I fixed this issue by modifying CSS. I added new CSS code.

Procedure to add new css/edit css is as – Goto Appearance -> Edit CSS and add following code. If you don’t find Edit CSS option then just go and add following code to your stylesheet.

@media only screen and (min-width:800px)and (max-width:3000px) {
    #topbanner {
        width: 640px;
        height: 90px;
    }
}

This is specific to my theme. You need to tweak the width and you can also add media queries for other resolutions, if required.

ProWebGuru

Mostly I write about technology related stuff on https://www.prowebguru.com Recently I have started making videos also. Mostly blog posts & videos are related to technology, programming and learning some new tips and tricks related to windows, wordpress, google app script, technical, programming, javascript, jquery and other coding related stuff. Youtube channel - https://www.youtube.com/user/prowebguru

View Comments

Recent Posts

GPT 5.4: Powerful AI Breakthrough – 7 Game-Changing Features, Launch Date & Full Guide

GPT 5.4: The Next-Generation AI Model Transforming Reasoning, Coding, and Productivity Artificial Intelligence is evolving…

1 day ago

GPT‑5.3 Instant Explained: Faster, Smarter & Fewer Refusals

GPT-5.3 Instant is OpenAI's latest ChatGPT model update, prioritizing smoother conversations, fewer refusals, and higher…

2 days ago

Free Perplexity Pro for Airtel Customers: Unlock Advanced AI Assistance at No Cost!

Are you tired of scrolling endlessly through Google results trying to find clear, trustworthy answers?…

4 months ago

Unlocking Collaborative Coding with GitHub Copilot Spaces

In recent years, the process of software development has rapidly evolved—developers demand smarter tools and…

4 months ago

ChatGPT Go Now Free in India: Opening Doors to Advanced AI Capabilities

India has emerged as one of the fastest-growing and most significant markets in the global…

4 months ago

AgentKit by OpenAI: Redefining the Future of AI Agent Development

On October 6, 2025, OpenAI unveiled AgentKit, a unified suite of tools designed to help developers and…

5 months ago

This website uses cookies.