How to add Google ads in Astra wordpress theme?

Add Google ads in the Astra WordPress theme without using a plugin:

Step-1: Go to your WordPress dashboard, and click Appearance.

Step-2: Click Widgets-> Add Custom HTML widget into the Main Sidebar of Astra Theme.

Step-3: Copy the Google Adsense ads code from the Google AdSense dashboard and paste it into it-> Click save and Click done.

Alternative way,
Step-1: Go to your WordPress dashboard and click posts.

Step-2: If you using by default WordPress Gutenberg Block Editor, then first choose the position where you want to place the ads then click the + button or search custom HTML on Gutenberg Block Editor.

Step-3: Add custom HTML blocks and Copy the Google Adsense ads code from the Google AdSense dashboard and paste it into it-> Click save.

Leave a Reply

Your email address will not be published. Required fields are marked *