[Resolved] how to align a hook into centre.

Home Forums Support [Resolved] how to align a hook into centre.

Home Forums Support how to align a hook into centre.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1045365
    Shivam

    i have added adsense code via a hook, How can i align that in the centre. click here to check screenshot

    #1045376
    Leo
    Staff
    Customer Support

    Hi there,

    Can you copy and paste the code you’ve added here?

    Make sure to highlight it and click the code button in the editor.

    #1045416
    Shivam
    
    <div class="hookads">
    <div class="hide-on-mobile hide-on-tablet">
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Header -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:728px;height:90px"
         data-ad-client="ca-pub-2486634758179588"
         data-ad-slot="1922343180"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    	</div>
    
    <div class="hide-on-desktop">
      <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Header mobile -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:336px;height:280px"
         data-ad-client="ca-pub-2486634758179588"
         data-ad-slot="4861838462"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    </div>
    
    </div>
    #1045417
    Leo
    Staff
    Customer Support

    Try adding this CSS:

    .hookads {
        text-align: center;
    }
    #1045422
    Shivam

    thankyou, it worked How can i place the hook before the page hero i am not seeing any position related to page hero

    #1045433
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

    Can you open a new topic for the separate question as this one is resolved?

    Thanks ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.