Forums

Wrapping Link Description (1 post)

  1. alexleonard
    Member
    Posted 5 years ago #

    I've been searching high and low on this one, but can't seem to find a resolution.

    I have been working on sidebar elements aiming to have the following structure:

    <ul>
    <li><h2>Widget Title</h2>
     <ul>
      <li><h3>Widget Item Title</h3>
       <span>Widget Item Description</span>
       <span>More widget item details</span>
      </li>
     </ul>
    </li>
    </ul>

    The idea being that this will give me enough css control to apply very beautiful styling to all my sidebar widgets, consistently.

    With a bit of work I have managed to get recent comments to display as required, but I am completely baffled on how to achieve this with bookmarks.

    Looking at wp_list_bookmarks, wp_get_links, and all variations has me stumped. It seems as though the only general behaviour with these template tags is (annotated!):
    <ul><li><a>Bookmark</a><br />Bookmark Description</li></ul>

    Which is all well and good, but in this case I don't want the title as the anchor and I can't see a way to change this, and I want to wrap the description in a span, but I can't.

    Do I need to look at writing my own mysql queries to achieve this?

Topic Closed

This topic has been closed to new replies.

About this Topic