Skip to content

Instantly share code, notes, and snippets.

@thegulshankumar
Created May 13, 2022 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thegulshankumar/4f67904dfdbe0f2df1be840b241cc656 to your computer and use it in GitHub Desktop.
Save thegulshankumar/4f67904dfdbe0f2df1be840b241cc656 to your computer and use it in GitHub Desktop.
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