Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1237658
    ignaciosantiago
    Participant

    Hi,

    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?

    #1237686
    Christian
    Moderator

    Hey there,

    Please try changing wp_head to x_after_site_begin and wp_footer to x_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.

    #1237713
    ignaciosantiago
    Participant

    Thanks, but now the ads are showing above the menu. I want them after o before the content.

    #1237738
    Thai
    Moderator

    Hi There,

    Please try with these hooks instead:

    x_before_view_renew_content

    x_after_view_renew_content

    Replace renew with your stack.

    Regards!

    #1237793
    ignaciosantiago
    Participant

    I add it, but nothing happens (ex. http://mensandbeauty.com/moda-para-hombres)

    #1237807
    Thai
    Moderator

    Hi 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 Account

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1237658 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>