Forums

Add Banner to SideBar. Can someone help? (3 posts)

  1. allover
    Member
    Posted 6 years ago #

    I'm trying to add an image to my sidebar. It is an affiliate image. I have done searches but there hasn't been a fix that works for me. Can someone please help? It is an affiliate link, but I replaced all the unecessary stuff with garbage.

    Here's what the link look like:

    <A HREF="http://refer.blablaaa.com/cgi-bin/clicks.xxxxxxxx=XXXXXX&BAN=0"> <IMG SRC="http://yourdomain.com/seancody0088.gif" BORDER=0></A>

    This is my sidebar.php template if that helps:

    <!-- begin sidebar -->
    <div id="sidebar">

    <?php if (function_exists('wp_theme_switcher')) { ?>
    <div id="themes">
    <h3><?php _e('Themes'); ?></h3>
    <?php wp_theme_switcher(); ?>
    </div>
    <?php } ?>

    <div id="categories">
    <h3><?php _e('Categories:'); ?></h3>

      <?php wp_list_cats('sort_column=name&optioncount=1&feed=rss'); ?>

    </div>

    <div id="archives">
    <h3><?php _e('Archives:'); ?></h3>

      <?php wp_get_archives('type=monthly&show_post_count=1'); ?>

    </div>

    <div id="blogroll">
    <h3>Blogroll</h3>

      <?php get_links(-1, '
    • ', '
    • ', ' - '); ?>

    </div>

    <div id="meta">
    <h3><?php _e('Meta:'); ?></h3>

      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • XFN
    • ">WP
    • <?php wp_meta(); ?>

    </div>

    </div>

    <div class="both"></div>

    </div>

    <!-- end sidebar -->

  2. allover
    Member
    Posted 6 years ago #

    Oh, I would like for the banner to be under "archives".

  3. ebusiness
    Member
    Posted 6 years ago #

    Insert the code you provided for the link at the end of the sidebar file immediately before the last </div> and that should do it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.