• How would I add text that says RSS feed along with my image at:

    https://www.freeclassifiedlinks.com/xmlrss2.gif

    I want to add this to the top of my menu.

    Here is my index.php menu code:

    <div id="menu">

    <ul>
    <li><?php _e('RSS Feed'); ?>
    <ul>
    <a href="https://www.freeclassifiedlinks.com/enter.html">Elite Links RSS Feed<img src="https://www.freeclassifiedlinks.com/xmlrss2.gif"></a&gt;
    </ul>
    </li>

    <ul>
    <li><?php _e('Subscribe'); ?><form action="https://www.getresponse.com/cgi-bin/add.cgi&quot; method="post" id="GRSubscribeForm">
    <table><tr>
    <td><label for="GRCategory2">Name</label>:</td>
    <td><input type="text" name="category2" size="14" id="GRCategory2" /></td>
    </tr><tr>
    <td><label for="GRCategory3">E-Mail</label>:</td>
    <td><input type="text" name="category3" size="14" id="GRCategory3" /></td>
    </tr></table>
    <input type="submit" value="Subscribe Now!" />
    <input type="hidden" name="category1" value="elinks" />
    <input type="hidden" name="confirmation" value="https://www.freeclassifiedlinks.com/elinksblog.html&quot; />
    <input type="hidden" name="error_page" value="" />
    <input type="hidden" name="misc" value="" />
    <input type="hidden" name="ref" value="001" />
    </form></li></ul>

    <ul>
    <li><?php _e('Categories'); ?>
    <ul>
    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
    </ul>
    </li>

    <li><?php _e('Recent Posts'); ?><ul>
    <?php get_recent_posts(); ?></ul>
    </li>

    <li><?php _e('Links'); ?>
    <ul>
    <?php get_links_list('-1', '<li>', '</li>', '<br />'); ?>
    </ul>
    </li>

Viewing 6 replies - 1 through 6 (of 6 total)
  • This is roughly how I did mine (except I use the graphic as text). Basic HTML:

    <a href="<?php bloginfo('rss2_url'); ?>" title="Syndicate this site using RSS 2.0"><img src="/images/banner_rss2.gif" alt="RSS 2.0" /><br />RSS Feed</a>

    Thread Starter fliteskates

    (@fliteskates)

    I added your code to my blog..and it looks great.

    However the code won’t validate now.

    All I did was add the code you showed me above.

    Can anyone tell me how to change this code so it validates?

    <div id="menu">

    <ul>
    <li><?php _e('Subscribe'); ?><form action="https://www.getresponse.com/cgi-bin/add.cgi&quot; method="post" id="GRSubscribeForm">
    <table><tr>
    <td><label for="GRCategory2">Name</label>:</td>
    <td><input type="text" name="category2" size="14" id="GRCategory2" /></td>
    </tr><tr>
    <td><label for="GRCategory3">E-Mail</label>:</td>
    <td><input type="text" name="category3" size="14" id="GRCategory3" /></td>
    </tr></table>
    <input type="submit" value="Subscribe Now!" />
    <input type="hidden" name="category1" value="elinks" />
    <input type="hidden" name="confirmation" value="https://www.freeclassifiedlinks.com/elinksblog.html&quot; />
    <input type="hidden" name="error_page" value="" />
    <input type="hidden" name="misc" value="" />
    <input type="hidden" name="ref" value="001" />
    </form></li></ul>

    <ul>
    <li><a href="<?php bloginfo('rss2_url'); ?>" title="Syndicate this site using RSS 2.0"><img src="https://www.freeclassifiedlinks.com/rss.gif&quot; alt="RSS 2.0" /><br />RSS Feed</a></li></ul>

    <ul>
    <li><?php _e('Categories'); ?>
    <ul>
    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
    </ul>
    </li>

    <li><?php _e('Recent Posts'); ?><ul>
    <?php get_recent_posts(); ?></ul>
    </li>

    <li><?php _e('Links'); ?>
    <ul>
    <?php get_links_list('-1', '<li>', '</li>', '<br />'); ?>
    </ul>
    </li>

    Hmmm…I’m going to guess it’s the <br /> – shouldn’t be in the <li> structure, but it works on my page. What’s your URL? I’ll look at the output and (try to) let you know.

    Thread Starter fliteskates

    (@fliteskates)

    Thread Starter fliteskates

    (@fliteskates)

    Ya I got it to work late last night.

    Thx for your help TM

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding RSS feed image to menu’ is closed to new replies.