Is Newspack The Reason for Gutenberg in WordPress?

WordPressAutomattic/WordPress.com have just announced Newspack by WordPress.com — A New Publishing Solution for News Organizations.

Newspack by WordPress.com is a new platform aimed at small and medium-sized news organisations, receiving a total of $2.4m funding, with half of that from from Google. Other contributors include The Lenfest Institute for Journalism, ConsenSys and The John S. and James L. Knight Foundation.

Google have a post on how a new publishing platform can help local news. I do wonder about the intentions behind this, as Google have a history of opposition from news organisations around the world who don’t like the aggregation which Google does.

Continue reading “Is Newspack The Reason for Gutenberg in WordPress?”

Remove Yellow Background from Google Adsense Adverts

Microsoft Dynamics GPI’ve been hosting adverts from Google Adsense for a while and, after my last site redesign, I started using responsive adverts which scale according to the size of the browser window (or device size).

Since then, I’ve had yellow background showing either side of the adverts:

Adverts with yellow bars

The other day, I finally had time to track down and fix the issue. The html code for the adverts, which is supplied by Google, places the adverts within an ins tag and a class of adsbygoogle (see two highlighted sections):

...<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
				<!-- azurecurve Responsive Leaderboard -->>
				<ins class="adsbygoogle"
					 style="display:block"
					 data-ad-client="{adsense publisher id}"
					 data-ad-slot="5299901990"
					 data-ad-format="auto"></ins>
				<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>...

The yellow background is the default colour used by WordPress for ins tags; so to remove it, all you need is a snippet of css in your stylesheet:

ins.adsbygoogle {
	background: transparent;
}

With the css saved, the yellow background disappears: