Opened 12 years ago
Closed 9 years ago
#24693 closed enhancement (wontfix)
Link description should have a class
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5.2 |
Component: | General | Keywords: | needs-patch |
Focuses: | template | Cc: |
Description
Hi. I'm using the Link Manager plugin, but I believe that just enables the link functionality which is already found in WordPress. I've put a widget in my footer to display the links which I've created. All of them have a name and a description, which are both placed in a li. The link is obviously an <a>, but the description has no class and just sits in the li, like so:
<li><a href="http://wordpress.org/" title="WordPress is a blog engine." target="_blank">Daniel Hart</a> WordPress is a blog engine.</li>
I suggest putting the description in a span, for easier theming of the links widget.
Change History (6)
#3
@
12 years ago
I'm using the Link Manager plugin, but I believe that just enables the link functionality which is already found in WordPress.
Related: #21307
#4
@
12 years ago
It's not really that big of a problem for me, although it would be nice. I've added a content: "- " to the :after of my a, but that means that the dash becomes a part of the link, which isn't the best solution. If I could have a :before on a span of the description, that wouldn't be a problem. Unless I'm wrong, I can only do as much with CSS as I can with wp_list_bookmarks().
#6
@
9 years ago
- Keywords needs-patch added
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Severity changed from trivial to normal
- Status changed from new to closed
The link feature was removed from WordPress on new installs for a few years now. Given that and the lack of interest on the feature on the ticket over the last 2 years closing as wontfix.
Actually, the Links widget uses the markup from
wp_list_bookmarks()
.The list itself has
xoxo blogroll
classes: tags/3.5.2/wp-includes/bookmark-template.php#L223. Do you have a specific use case that cannot be accomplished using existing classes?