Tagged: x
-
AuthorPosts
-
October 31, 2016 at 5:39 am #1237658
ignaciosantiagoParticipantHi,
I want to add adsense to the pages. I have 2 codes, one before the content and another after the content. I had apllied this code, but nothing happens.
// Add Adsense pages function custom__ads_head() { ?> <?php echo do_shortcode("[pro_ad_display_adzone id=79]"); ?> <?php } function custom_ads_footer() { ?> <?php echo do_shortcode("[pro_ad_display_adzone id=78]"); ?> <?php } add_action('wp_head','custom_ads_head'); add_action('wp_footer','custom_ads_footer');What am I doing wrong?
October 31, 2016 at 6:11 am #1237686
ChristianModeratorHey there,
Please try changing
wp_headtox_after_site_beginandwp_footertox_before_site_end. If that doesn’t help, the problem might be with your shortcode. In that case, please contact the developer of the shortcode.Thanks.
October 31, 2016 at 6:35 am #1237713
ignaciosantiagoParticipantThanks, but now the ads are showing above the menu. I want them after o before the content.
October 31, 2016 at 6:55 am #1237738
ThaiModeratorHi There,
Please try with these hooks instead:
x_before_view_renew_contentx_after_view_renew_contentReplace
renewwith your stack.Regards!
October 31, 2016 at 8:12 am #1237793
ignaciosantiagoParticipantI add it, but nothing happens (ex. http://mensandbeauty.com/moda-para-hombres)
October 31, 2016 at 8:33 am #1237807
ThaiModeratorHi There,
In this case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link login to your site
– WordPress Admin username / Password
– FTP AccountDon’t forget to select Set as a private reply. This ensures your information is only visible to our staff.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1237658 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
