Answered: SnowFlate Theme mobile sidebar problem

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


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:
DOJ has 5.2 million pages of Epstein files left to review: Reports
Congressional Republicans call on Tim Walz to testify on Minnesota fraud scandal
U.S. grants TSMC annual licence to import U.S. chipmaking tools into China
Economist Mark Zandi sees the Fed surprising with three rate cuts in first half of 2026
Minimum wage just went up in 19 states—workers in one state are getting a $2 an hour raise
Student loan forgiveness is taxable again: Start planning for the 'tax bomb,' CFP says
Novo Nordisk enters 2026 on the defense as it faces a ‘must-win’ battle in the U.S. market
New Year's resolutions rarely work, neuroscientist says: Here's a smarter way to build new habits
Google wraps up best year on Wall Street since 2009, beating megacap peers as AI story strengthens
Bernie Sanders and Ron DeSantis speak out against data center boom. It's a bad sign for AI industry