WordPress.org

Support

Support » How-To and Troubleshooting » Adding Adsense to Sidebar

Adding Adsense to Sidebar

  • 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • In your theme editor, place googles ad script at below the “More” command lines and shortly you will see advertisements.

    Hope this helps

    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 : ?>

  • <h2>Meta</h2>

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

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

right before your </div>

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) {
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Adsense to Sidebar’ is closed to new replies.
Skip to toolbar