Tagged: adsense
-
AuthorPosts
-
May 11, 2020 at 10:25 am #1211785
Unfortunately, I couldn’t find a solution to my problem in the search: how do I place the AdSense code on pages?
I have tried Code-Block; it does not work. I tried “Insert Html Snippet” and Text-Block; it doesn’t work.
What do I have to do to insert AdSense ads on my page with Avia Builder?
What are the specific procedures?Thank you very much for your help, Andreas
May 12, 2020 at 10:45 am #1212075Hello Kriesi, no answer, no help?
May 12, 2020 at 1:17 pm #1212156Hi Werbecheck,
Here is an article for you:
https://www.wpbeginner.com/beginners-guide/how-to-add-google-adsense-to-your-wordpress-site/You can create widgets with ads and add those to the pages with the widget area.
Best regards,
VictoriaMay 12, 2020 at 2:25 pm #1212181Unfortunately, this does not solve the problem. The integration of AdSense with the help of widgets is in my opinion not a perfect solution and leads to unsightly designs.
OK, then I will inform myself in other sources.
As a customer with five licenses it is not satisfying to get only a link to a banal text as an answer instead of seriously addressing the question in terms of content.
- This reply was modified 4 years, 6 months ago by Werbecheck.
May 12, 2020 at 6:33 pm #1212309Hi Werbecheck,
What code are you trying to add?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMay 12, 2020 at 6:39 pm #1212312Seriously? You’re asking me what code I want to put in?
So you’re answering a question you haven’t read?
It’s very clear: AdSense code.
Would you find such a support great for you, where your time comes with unnecessary questions and answers that are not very helpful?
You may find me rude now. No, I am not. Just disappointed with the way they are handling my request.Here, once again:
“Unfortunately, I couldn’t find a solution to my problem in the search: how do I place the AdSense code on pages?
I have tried Code-Block; it does not work. I tried “Insert Html Snippet” and Text-Block; it doesn’t work.
What do I have to do to insert AdSense ads on my page with Avia Builder?
What are the specific procedures?”May 14, 2020 at 3:43 pm #1212970Now what? Is there nothing more to come?
Pity.
Kriesi used to be great.
But “success” has made you arrogant.
May 18, 2020 at 12:31 pm #1213999Hi,
Sorry for the confusion and for the delay. If the script doesn’t work directly in the builder, we can create a custom shortcode that contains the adsense snipet. In the functions.php file, add this code.
function ava_insert_adsense_snippet() { $ad = <<<EOT <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-xxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxxx" data-ad-format="auto" data-full-width-responsive="false"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> EOT; return $ad; } add_shortcode('avs_adsense_snippet', 'ava_insert_adsense_snippet');
Replace the data-add attributes with your actual credentials.
Go back to the page and add a code block element, then the custom shortcode that we’ve just created.
[avs_adsense_snippet]
You can also use plugins like Sitekit or AdvancedAds if you prefer more options.
// https://sitekit.withgoogle.com/
// https://wpadvancedads.com/adsense-ads/Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.