WordPress PopUp displaying Google Adsense
-
Hello! Why WordPress PopUp displaying Google Adsense in popups?
Sorry for duplicate topics.
-
Hey there kpripper,
Hope you’re well today π
Can you please add more information about your setup and where are you adding Google Adsense code and what exactly are you adding to popup content.
Can you also post link to your site?
Looking forward for your response π
Cheers,
BojanI looked at the preview and have seen that picture
http://postimg.org/image/u6loeov1f/
But in the code I input just 4444444444444. So, why WordPress PopUp displaying Google Adsense?
My site http://for-surgeons.com
Hey again kpripper,
I’ve did some tests on my sandbox site trying to recreate it by adding test adsense code but couldn’t recreate the issue.
I’ve also checked your front end and it appears that this is only related to popup preview as the ad is not being displayed on your site http://screencast.com/t/nTBTEafji7Y.
Could you please post more info on how you are adding adsense code and where you’re displaying it so we can try to test this and see why is it displayed on the popup preview in the back end.
Best regards,
BojanHm, maybe it is a problem with Quick Adsense plugin.
Yes, it is Quick Adsense. Thank you.
And one more question. How I can enable PHP in popups ?
Hey again kpripper,
The easiest way to do this would actually be to create a shortcode and then place it in the popup content. You can easily create a shortcode on this site https://generatewp.com/shortcodes/.
Please check it out and let me know if that helps π
Cheers,
BojanWell, I try place a shortcode in the popup content, but it does not work.
I created such shortcode:
//[relatedposts]
function relatedposts_func(){
related_posts();
}
add_shortcode( ‘relatedposts’, ‘relatedposts_func’ );related_posts(); it is the function from Yet Another Related Posts Plugin and in the posts it works correct (for instance http://for-surgeons.com/general-surgery/gastroparesis-after-pyloroplasty-and-nissen.html – we see “Similar posts” at the begin of post).
But popups with that shortcode not displaying at all.
Hey again kpripper,
I’ve tested this on my end and the following seems to be working (http://screencast.com/t/mZRfSMjB):
<?php // Add Shortcode function custom_shortcode() { // Code related_posts(); } add_shortcode( 'popuprelated', 'custom_shortcode' );Hope this helps π
Cheers,
BojanSorry, is not working. π
Hey kpripper,
Can you please add more information on what happens when you add what I suggested above?
What are you adding as your shortcode? What is the output on the front end?
Please advise,
Bojan
The topic ‘WordPress PopUp displaying Google Adsense’ is closed to new replies.