HTML code help for my WordPress Blog

Discussion in 'HTML & Website Design' started by pharcyded, Feb 3, 2008.

  1. #1
    This is what I have in my code for my wordpress blog subscribe link:

    <a href="<?php bloginfo('http://devoted2gaming.com/feed'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="Subscribe to my RSS feed"></a>
    Code (markup):
    The issue I am having is that when you click the image on my site it takes you to http://devoted2gaming.com/DeVOTeD 2 GaminG ...which is a link that does not exist. Why isn't it taking them to the feed link provided in the code? I don't understand! Any help would be appreciated. :confused:
     
    pharcyded, Feb 3, 2008 IP
  2. Hob Bramble

    Hob Bramble Peon

    Messages:
    3
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, have you looked at the HTML your code is producing?
    <a href="DeVOTeD 2 GaminG"><img src="http://devoted2gaming.com/wp-content/themes/GamesBlog/images/rss.gif" alt="Subscribe to my RSS feed"></a>
    Code (markup):
    All you should need to do is remove the php tags and bloginfo bit from the link - just have it link directly to the feed.
     
    Hob Bramble, Feb 3, 2008 IP
    pharcyded likes this.
  3. pharcyded

    pharcyded Peon

    Messages:
    720
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ty ;)

    +rep
     
    pharcyded, Feb 3, 2008 IP
  4. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #4
    The correct code would be
    
    <a href="<?php bloginfo('rss2_url''); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="Subscribe to my RSS feed"></a>
    
    PHP:
     
    YIAM, Feb 3, 2008 IP