Forums

Creating a clickable image within theme's sidebar? (6 posts)

  1. dreadpiraterose
    Member
    Posted 1 year ago #

    Hi all.

    I have an advertisement space in the sidebar. I know how to replace the image by writing over the current one in my FTP space. However, I don't know how to make the image clickable.

    My site is here: http://conventionfansblog.com/

    This is the code I currently have related to that image under sidebar.php:

    <div id="sidebar">
    
    <div id="sidebar-ads">
    <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/square.jpg" alt="" width="300px" height="250px" />
    
    </div>

    My GoogleFu has failed me. Can anyone help me out?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    <div id="sidebar">
    
    <div id="sidebar-ads">
    <a href="link_url_goes_here"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/square.jpg" alt="" width="300px" height="250px" /></a>
    
    </div>
  3. dreadpiraterose
    Member
    Posted 1 year ago #

    You are my hero!

    Now... any idea why that ad doesn't show up in Chrome, but does in Firefox? Ugh! LOL.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    The link is there but you need to either upload your own square.jpg graphic to the wp-content/themes/arthemia/images/banners folder. Or upload a graphic with a different file name to the same folder and amend that last part of <img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/square.jpg"

    Cool site! Are you just covering US cons or will you be extending to cover European ones?

  5. dreadpiraterose
    Member
    Posted 1 year ago #

    Thanks!

    Yeah, my plan is to drop an actual ad in there tomorrow. I'll try renaming it and such.

    And I mostly cover USA and Canadian cons, but I do write about some of the ones in the UK and Australia, and occasionally some in Asian. If the con doesn't have an English site though, it makes it a bit difficult.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Two that you mightn't have spotted:
    http://dwcon.org
    http://idwcon.org

    The latter will hopefully be repeated in 2011. There are also related cons in Germany, Australia & the US every 2 years or so. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic