• I have pretty well muddled through customizing the arthemia free using the tutorial and online forums of various sorts.

    I figured out quite easily how to add my images for both the large banner at the top and the square on on the sidebar.

    however, one thing i haven’t figured out is how to make the images clickable to another page/site. In one case, i want it clickable to open in the same window, and another to open a new window.

    large banner at top is in the header.php file code:

    <div class=”right”>
    <img src=”<?php echo get_option(‘home’); ?>/wp-content/themes/arthemia/images/banners/wide.jpg” alt=”” width=”468px” height=”60px” />
    </div>

    and the side banner is in the sidebar.php code:

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

    What do I add if I want to make the image clickable to another site/page? And what about opening in another window?

    Easy question for you pros, i know…so no laughing!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1) for the banner header

    <div class="right">
    <a href="#"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/wide.jpg" alt="" width="468px" height="60px" /></a>
    </div>

    2) for sidebar

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

    3) add to stylesheet

    .right a { display: block; width: 468px; height: 60px; }
    #sidebar-ads a { display: block; width: 300px; height: 250px; }

    Where you added href=”#”, replace # with the URL of the page you want clicking the header or sidebar to open up to.

    In the sidebar code you see [ target=”blank” ] – that causes the link to open in a new window or browser tab

    Thread Starter shelbypets

    (@shelbypets)

    Holy crap that works! Thank you!

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

The topic ‘Arthemia banner question’ is closed to new replies.