Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GeneratePress header ad - responsive
<div align='center' style='margin-top: 15px;'>
<style>
.top_header_advt { width: 320px; height: 100px; }
@media(min-width: 500px) { .top_header_advt { width: 468px; height: 60px; } }
@media(min-width: 800px) { .top_header_advt { width: 728px; height: 90px; } }
</style>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxx" crossorigin="anonymous"></script>
<!-- top_header_advt -->
<ins class="adsbygoogle top_header_advt"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment