- This topic has 9 replies, 2 voices, and was last updated 6 years, 2 months ago by Tom.
-
AuthorPosts
-
January 21, 2018 at 2:19 am #476158Feri
Hi,
i have “page section” part on my homepage and try to insert adsense code with shortcode based on this tutorial: https://generatepress.com/forums/topic/how-to-add-adsense-ads-inside-posts-or-articles/
the result is AdSense not showing on homepage but showing everywhere else. For example i try to insert adsense code to “Footer Widget 1”: adsense showing on single post but not on my homepage.
it could just be adsense. but i try to clear cache, refresh page and i dont have ad block plug in on my browser.
i hope you can solve my problem. thank you.
January 21, 2018 at 9:27 am #476448TomLead DeveloperLead DeveloperIt’s likely Adsense not knowing which ads to show yet. Where in the page did you add the code?
January 21, 2018 at 5:39 pm #476704FeriWhere in the page did you add the code?
My homepage – Page Section and i have try 2 different methode, first based on this tutorial https://generatepress.com/forums/topic/how-to-add-adsense-ads-inside-posts-or-articles/ and the second is using plugin ad inserter.
both of methode used “shortcode” and i copy paste to Page Section and nothing happen. adsense not showing, and only at home (page section).
January 21, 2018 at 9:55 pm #476766TomLead DeveloperLead DeveloperIt looks like it’s in a widget area right now? Can you try the shortcode method again?
January 21, 2018 at 10:45 pm #476784Feriyes, only at footer widget (with html adsense code, not shortcode).
i dont know, maybe its all about adsense shortcode. Try 2 different methode, but no result.
can i send you a temporary login to my dashboard admin?
January 22, 2018 at 11:35 am #477363TomLead DeveloperLead DeveloperThe footer widget adsense seem to be working: https://www.screencast.com/t/oAYQW6Zc
The theme itself simply displays the content provided by WordPress, so I’m not sure how much I could help by logging in.
If the adsense javascript is being added correct, and not being stripped (in an HTML widget, or in a shortcode), then it should work just like it does everywhere else.
January 22, 2018 at 4:32 pm #477567Feriok finally adsense is showing but in a wrong place.
wherever i put the code
[adsense]
to SECTION page, adsense always showing under the slider/page header.January 22, 2018 at 4:42 pm #477571Feriaaah finally ๐
i change the function php shortocode based on this article http://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/
i dont know what the different with this tutorial https://generatepress.com/forums/topic/how-to-add-adsense-ads-inside-posts-or-articles/ok, adsense is showing at homepage.
case closed.January 22, 2018 at 7:42 pm #477643Feriresolved
January 22, 2018 at 8:23 pm #477660TomLead DeveloperLead DeveloperGlad you got it working! ๐
-
AuthorPosts
- You must be logged in to reply to this topic.