Answered: SnowFlate Theme mobile sidebar problem

Post date: 2020-09-26 03:38:14
Views: 171


Google Adsense code automatically adds some malicious attributes to all DIV tags:

max-height:auto !important;  height:auto !important

This destroys the responsiveness of mobile viewing experience. I'm not using Snowflat theme, but this will surely affect every theme.

I tried several ways to overcome this, but they don't work (or no longer work). I also voiced anger on Adsense forum, and it turns out that many people out there are also pissed. So as the last resort, I had to eliminate Google Adsense code from side panel in mobile view.

So, you can try using qa_is_mobile_probably() function to display Google Adsense ads selectively.

Another method is you can create a different mobile theme. Just clone your Snowflat theme and name it as Snowtap theme, and you use Snowtap for mobile users. In Snowtap theme, you don't include Google ads in sidepanel.

Please click Here to read the full story.
 
Other Top and Latest Questions:
One year on from the UK's grand AI plan: Has its infrastructure buildout been a success?
How to find the log in page in q2amarket.com
The 'Trump-class' battleship faces a large obstacle in its way: Reality
Virginia offshore wind developer sues over Trump administration order halting projects
Play on or game over? A look back at 2025 for the video game industry
Here’s where you can still snag 4% yields on idle cash
Rents are falling in these major U.S. cities heading into 2026—one of the more 'renter-friendly periods' in a decade, says expert
These are the most overbought S&P 500 stocks as 2026 approaches
Thailand and Cambodia halt fierce border conflict with second ceasefire
Putin says Russia will achieve its Ukraine aims by force if Kyiv doesn't want peace