- This topic has 27 replies, 4 voices, and was last updated 7 years, 11 months ago by
Tom.
-
AuthorPosts
-
April 7, 2018 at 8:43 am #543833
Azedine
Hi,
It’s weird, my ads are showing in all my websites with different themes except Generatepress which I find weird.
Is there something we have to activate to make it work?Just in case, it has nothing to do with Google verification:-)
Thanks
April 7, 2018 at 12:58 pm #544010Leo
StaffCustomer SupportHi there,
Where are you adding the adsense code?
April 7, 2018 at 3:00 pm #544070Azedine
Between paragraphs.
April 7, 2018 at 7:23 pm #544165Leo
StaffCustomer SupportWhat is the code you added?
Isn’t it PHP? https://generatepress.com/forums/topic/google-site-verification-google-adsense-verification/#post-281448
April 8, 2018 at 5:24 am #544363Azedine
I wouldn’t put my code publicly, I don’t think so. I would like to know if I can send it privately. Yes call me paranoid 😉
PHP? i didn’t try that.
Since, I’m using child theme as well , how can I proceed with this “Use a Child Theme
If you’re already using a child theme, you can use the functions.php file to add your PHP”April 8, 2018 at 8:52 am #544566Leo
StaffCustomer SupportIsn’t that just the generic adsense code?
Is it one of these two here? https://generatepress.com/forums/topic/google-site-verification-google-adsense-verification/#post-281304
April 8, 2018 at 9:44 am #544600Azedine
The website is already verified.
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– whatever –>
<ins class=”adsbygoogle” style=”display: inline-block; width: 728px; height: 90px;” data-ad-client=”ca-pub-000000000000″ data-ad-slot=”000000000″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>April 8, 2018 at 6:11 pm #544849Leo
StaffCustomer SupportHmm can you try Tom’s method here?
https://generatepress.com/forums/topic/page-header-content-cannot-save/#post-221222April 9, 2018 at 4:04 am #545121Azedine
Is it possible just to send you the login details to avoid the back and forth ( That’s what other theme support do)
Thanks
April 9, 2018 at 8:35 am #545388Leo
StaffCustomer SupportYou can through Account Issue here: https://generatepress.com/contact/
However we don’t usually make changes for your site for you and would like to avoid logging in as much as possible.
This is why I’m trying to make sure all the necessary steps are done.
I believe there is a code you need to add to
wp_headhook to start:
https://generatepress.com/forums/topic/code-snippets-plugin-to-add-adsense-script-getting-syntax-error/#post-331335Have you done that?
Then I would recommend this plugin as it handles inserting ads very well:
https://en-ca.wordpress.org/plugins/ad-inserter/April 9, 2018 at 3:19 pm #545767Azedine
I’m sorry but I don’t need a plugin to make a google ad work. I had several themes with other providers and I never had to add a plugin to make google ads work. So, the plugin is not an option.
Is there a ticket# or do I have to tell the whole story again?
Thanks
April 9, 2018 at 9:17 pm #545948Tom
Lead DeveloperLead DeveloperHow are you adding that code into your content? Just within the regular code editor?
If so, WordPress doesn’t allow javascript within the code editor, and will strip out some essential parts.
This article has some methods for allowing JS in your content: https://www.godaddy.com/garage/3-ways-to-insert-javascript-into-wordpress-pages-or-posts/
If that doesn’t help, feel free to email us through the contact form. Just be sure to mention this topic.
April 10, 2018 at 3:30 pm #546770Azedine
Hi Tom,
Thanks for jumping in.
I always add it on “HTML” (Visual | Html )side of wordpress post on other themes and I had no issues.I already sent an email yesterday but no one got back to me yet.
Thanks
April 10, 2018 at 5:58 pm #546849Tom
Lead DeveloperLead DeveloperWordPress will still strip JS, even if it’s added into the Text tab.
It’s possible those other themes bypass the check, which is actually not a good thing to do by default.
That article I linked you to has some methods you can use to bypass the check.
April 11, 2018 at 4:44 am #547183Azedine
Hi Tom,
Uhmm you are right, I better avoid doing the above, so going back to square one how can I add the google ads, I added several on GP Hooks but it’s not working.
Do I have to check mark “Executer PHP”?
Is there a way to send screenshots?Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.