• Hi,

    I’ve got a small problem. My image links are not working in any way?
    Neither the ones that i gave a background image in CSS, nor the one ‘twitter’

    <div id="rightmenu">
    
    <div id="Sidebar_full">
    <ul>
    
    <li>
    <div id="facebook">
     <a href="http://www.facebook.com/"></a>
    </div>
    </li>
    
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar_full') ) : ?>
    
     <li>
     <div id="hyves">
     <a href="http:/www.hyves.nl/">
     </div>
     </li>
    
    <?php endif; ?>
    
    </ul>
    </div><!-- Closes facebook -->
    
    <div id="sidebar_left">
    <ul>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_left') ) : ?>
    
    <li>
    <div id="twitter">
    <a href="http://google.com"<img src="images/tweet.png" /></span></a>
    </div>
    </li>
    
    <?php endif; ?>
    </ul>
    
    </div> <!-- Closes Sidebar_left -->
    
    <div id="sidebar_right">
    
    <ul>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_right') ) : ?>
    
    <li>
    <div id="flckr">
    <ul>
    <a href="http://www.flickr.com/thedolphinacademy"></a>
    </ul>
    </div>
    </li>
    
    <?php endif; ?>
    </ul>
    
    </div> <!-- Closes Sidebar_right -->
    
    <div class="cleared"></div>
    </div> <!-- Closes Sidebars -->
Viewing 3 replies - 1 through 3 (of 3 total)
  • You have coding errors,i.e. <a href="http://google.com" and `<a href=”http:/www.hyves.nl/”>
    </div>’
    Check for open tags and nesting errors.

    Thread Starter justinvanheel

    (@justinvanheel)

    Now if it’s fixed, it still ain’t working? What about it

    <div id="rightmenu">
    
    <div id="Sidebar_full">
    <ul>
    
    <li>
    <div id="facebook">
     <a href="http://www.facebook.com/"></a>
    </div>
    </li>
    
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar_full') ) : ?>
    
     <li>
     <div id="hyves">
     <a href="http://www.hyves.nl/"></a>
     </div>
     </li>
    
    <?php endif; ?>
    
    </ul>
    </div><!-- Closes facebook -->
    
    <div id="sidebar_left">
    <ul>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_left') ) : ?>
    
    <li>
    <div id="twitter">
    <a href="http://google.com"></a>
    </div>
    </li>
    
    <?php endif; ?>
    </ul> 
    
    </div> <!-- Closes Sidebar_left -->
    
    <div id="sidebar_right">
    
    <ul>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_right') ) : ?>
    
    <li>
    <div id="flckr">
    <ul>
    <a href="http://www.flickr.com/thedolphinacademy"></a>
    </ul>
    </div>
    </li>
    
    <?php endif; ?>
    </ul>
    
    </div> <!-- Closes Sidebar_right -->
    
    <div class="cleared"></div>
    </div> <!-- Closes Sidebars -->

    so you are trying to make an image link? here’s mine

    <div class="twitter">
           <a href="http://twitter.com/rvoodoo"><img src="<?php bloginfo('template_url'); ?>/images/twitterLogo.png" width="114" height="111" alt="Follow us on Twitter!" /></a>
           </div>

    you can’t just call an image from /images/yourimage in your theme…

    you have to have the <?php bloginfo('template_url'); ?> in there

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

The topic ‘Link not working from image?’ is closed to new replies.