[wp-hackers] wrapping link name between span tags in blogroll
cross at thisismyurl.com
Thu Jun 9 15:49:00 UTC 2011
Danilo, it's generally a bad idea to edit the core files as you might lose the changes during an upgrade. A much better way to do it is to move the core functions into the functions.php or a plugin file and rename them for your specific needs. Chris
On 2011-06-09, at 10:25 AM, danilo wrote:
> using the standard blogroll widget I needed the link name to be wrapped in <span> tags while using link images, so I tried looking for a valid filter to do so but was unable to find it.
> here's the standard output of the wp_list_bookmarks function used in the blogroll widget:
> <li><a href=".."><img ... /> linkname</a></li>
> and here's what I needed to achieve:
> <li><a href=".."><img ... /><span class="link_name">linkname</span></a></li>
> Since I couldn't find a clean way of achieving this I decided to have a look at wp-includes/bookmark-template.php and I made a few modifications.
> here's the patch I've made, it's on pastebin so that you could have a look at it and tell me if it's worth submitting it to trac.
> Thanks a lot in advance
> Danilo aka danix
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Christopher Ross (cross at thisismyurl.com)
WordPress Consulting, Design & Programming
Toronto - (416) 900-3731
More information about the wp-hackers