Home › Forums › Support › how to align a hook into centre. This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by Leo. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts October 26, 2019 at 10:37 am #1045365 Shivam i have added adsense code via a hook, How can i align that in the centre. click here to check screenshot October 26, 2019 at 10:50 am #1045376 LeoStaff 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. October 26, 2019 at 11:51 am #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> October 26, 2019 at 11:53 am #1045417 LeoStaff Customer Support Try adding this CSS: .hookads { text-align: center; } October 26, 2019 at 12:00 pm #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 October 26, 2019 at 12:11 pm #1045433 LeoStaff Customer Support No problem ๐ Can you open a new topic for the separate question as this one is resolved? Thanks ๐ Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In