Make image links work in sidebar
-
Hello – I am playing with the Newsweek Theme from PremiumThemes. I’m not especially code savvy and a bit of a WP newbie.
You can see the site currently here: https://www.viralweek.com
I am having some trouble trying to get sidebar images to link externally. I will paste the code below. Could someone advise how I would make all the sponsor .pngs at the end of the code link?
I have tried copying the method used successfully half way down the sidebar (From our partners image) but this upsets the page, making everything below link as well and running into the footer. I’m guessing i need to close something? Where should I put the link code?
Thanks in advance for your support.
<div id="sidebar_r"> <div class="subscribe"> <h2 class="sidebartitle"> <?php _e('Stay in touch'); ?> </h2> <p class="i_twitter"><strong ><a href="https://www.twitter.com/">Twitter</a></strong></p><p class="i_facebook"><strong ><a href="https://apps.new.facebook.com/viralweek/">On Facebook</a></strong></p><p class="i_rss"><strong ><a href="feed:<?php bloginfo('rss2_url'); ?>">Subscribe via RSS</a></strong></p> <p class="i_email"><strong >Subscribe via email</strong></p> <div class="subscribetextbg"> <form action="https://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open('https://www.feedburner.com/fb/a/emailverifySubmit?feedId= Your Feed ID here ', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"> <input name="email" type="text" value="Your email address" class="subscribe_textield" onfocus="if (this.value == 'Your Email Address') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Email Address';}" /> <br /> <input type="hidden" value="https://feeds.feedburner.com/~e?ffid= Your Feed ID here " name="url"/> <input type="hidden" value="<?php bloginfo('name'); ?>" name="title"/> <input type="hidden" name="loc" value="en_US"/> <input type="image" src="<?php bloginfo('template_url'); ?>/images/b_subscribe.png" class="subscribe_b" value="Subscribe" /> </form> </div> </div> <div class="advt"> <h2 class="sidebartitle"> <?php _e('From our Partners'); ?> </h2> <a href="https://www.nike.com"><img src="<?php bloginfo('template_url'); ?>/images/advt_300x250.jpg" alt="" /> </div> <?php include (TEMPLATEPATH . "/tabber.php"); ?> <ul> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?> <li> <h2 class="sidebartitle"> <?php _e('Other good things'); ?> </h2> <ul class="list-blogroll"> <?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', FALSE, FALSE, -1, FALSE); ?> </ul> </li> <?php endif; ?> </ul> <div class="sponsorslist" > <h2 class="sidebartitle"> <?php _e('Friends & Family'); ?> </h2> <ul class="sponsors" > <li><img src="<?php bloginfo('template_url'); ?>/images/s1.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s2.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s3.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s4.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s5.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s6.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s7.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s8.png" alt="" /></li> <li><img src="<?php bloginfo('template_url'); ?>/images/s9.png" alt="" /></li> </ul> </div> <div class="advt"> <img src="<?php bloginfo('template_url'); ?>/images/advt_300x100.gif" alt="" /> </div> </div> <!--/sidebar -->
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Make image links work in sidebar’ is closed to new replies.