WordPress.org

Ready to get started?Download WordPress

Forums

Adding Adsense to Sidebar (5 posts)

  1. BlackMICA
    Member
    Posted 5 years ago #

    Hi I'm having trouble placing the code for adsense. Basically I want to place the ad at the bottom of my sidebar.

    So if you check out my site, http://www.ob-photo.com I want to place it underneath the part that says "MORE"

    Can anyone help me out?

  2. rwbridges.com
    Member
    Posted 5 years ago #

    In your theme editor, place googles ad script at below the "More" command lines and shortly you will see advertisements.

    Hope this helps

  3. BlackMICA
    Member
    Posted 5 years ago #

    I just don't know exactly where in the code to put it

    Here's the end of the code. Any idea where in that mess to drop the adsense code?

    `<?php } ?>

    </div>
    <?php } ?>
    </div>
    <?php } ?>
    <?php if(get_option('rgb_shelf') == 1) { ?>
    <span class="thickboxbtn"> ">

    <?php _e('More','rgb'); ?>
    </span>
    <?php } ?>
    <ul id="sidebarwidgets" <?php if(get_option('rgb_shelf') == 1) { ?>style="display:none;"<?php } ?>>
    <?php /* if the Sidebar Widgets plugin is enabled */ if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>

  4. <h2>Meta</h2>

    • <?php _e('Please use widgets to arrange your sidebar items.','rgb'); ?>
  5. <?php /* end for Sidebar Widgets */ endif; ?>

    </div>
    <div class="clear"></div>
    `

  • rwbridges.com
    Member
    Posted 5 years ago #

    right before your </div>

  • BlackMICA
    Member
    Posted 5 years ago #

    I actually put the code in between these two lines and it worked. Thanks for the help though.

    <?php } ?>
    (ADSENSE CODE HERE)
    <ul id="sidebarwidgets" <?php if(get_option('rgb_shelf') == 1) {
  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags