Skip to:
Content
Pages
Categories
Search
Top
Bottom

Displaying Adsense ads

Viewing 2 replies - 1 through 2 (of 2 total)

  • koendb
    Participant

    @koendb

    Very quick response, think this or something like this would work:

    Create a child theme, copy loop-replies.php and change this part:

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    <?php endwhile; ?>

    into:

    <?php $i=1; 
    while ( bbp_replies() ) : bbp_the_reply(); ?>
                    <?php if(1==$i or 3==$i) { echo '#adsense code#'; } ?>
                    <?php $i++; ?>
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    <?php endwhile; ?>

    virusek89
    Participant

    @virusek89

    @koendb Everything works as it should. Thank you for your help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar