Unable to place banner in middle


#1

Hello friends,

I placed banner ad below the title but i am unable to place it middle. i used simple hooks.

can any one help me?

Thank you.


#2

For such placements I use ad-inserter plugin. In ad-inserter you can specify the position of paragraph after which ad is displayed.


#3

i use WP SQUADS


#4

Wrap Advt code this way.

<div style="margin:10px; text-align:center;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive banner -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-XXXXXXXXX"
     data-ad-slot="XXXXXXXXX"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

At which location you want to place?

For example: In the header with center centre align, use genesis_after_header Hook.