Links aren't links (4 posts)

  1. bmccullo
    Posted 10 years ago #

    I'm trying to create a menu of links using

    <div id="nav"><ul><?php wp_get_links(2); ?></ul></div>

    it outputs the list of links from category ID #2 fine, but the link url is surrounded by single quotations ('), not double (")...

    <li><a href='http://chordaltheory.net/photos'>Photos</a></li>

    As a result (I think), the link element within each <li> isn't actually a link. Meaning it isn't clickable as a link. Any thoughts?

  2. Kafkaesqui

    Posted 10 years ago #

    Using single quotes for attribute values is valid XHTML, and I have no problem following links on my blog because of them.

    Are you unable to click through on these links? If so, what browser are you using?

  3. bmccullo
    Posted 10 years ago #

    Hmm, yeah I wasn't sure if single quotes was the problem or not. I'm using Firefox 1.0.6 and I'm unable to click through the links.

  4. pcmt
    Posted 10 years ago #

    Your problem is somewhere in your stylesheet.

    I removed some of the float:lefts in your #nav styling and your links worked fine in Firefox.

Topic Closed

This topic has been closed to new replies.

About this Topic