Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1019491
    Razorsharp_
    Participant

    Hey,

    I’m using the renew theme and have successfully managed to implement my Google Adsense code into my wp-header.php and the ads show exactly how I like them using:

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/WP-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Header output for Renew.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <?php x_get_view( 'global', '_slider-above' ); ?>
    
      <header class="<?php x_masthead_class(); ?>" role="banner">
        <?php x_get_view( 'global', '_topbar' ); ?>
        <?php x_get_view( 'global', '_navbar' ); ?>
      </header>
    
      <?php x_get_view( 'global', '_slider-below' ); ?>
      <?php x_get_view( 'renew', '_landmark-header' ); ?>
    
    <div><center><p style="margin:5px"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Header -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-xxxxxxxxxxxx"
         data-ad-slot="xxxxxxxxxxxxxxxx"
         data-ad-format="auto"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script></p>

    The only problem is I would like the ads not to appear on certain pages and posts of my choosing (home/sales pages).

    Is there a something I can add to it so that ads won’t appear on the pages/posts I choose?

    #1019512
    Rupok
    Member

    Hey there,

    Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

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