WordPress.org

Support

Support » How-To and Troubleshooting » Links aren’t links

Links aren’t links

  • bmccullo
    Member

    @bmccullo

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Kafkaesqui
    Member

    @kafkaesqui

    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?

    bmccullo
    Member

    @bmccullo

    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.

    pcmt
    Member

    @pcmt

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Links aren’t links’ is closed to new replies.