[wp-hackers] wrapping link name between span tags in blogroll
Christopher Ross
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:
> Hello,
> 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.
>
> http://pastebin.com/TaVyZWzQ
>
>
> Thanks a lot in advance
> --
> Danilo aka danix
> http://danixland.net
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
__
Christopher Ross (cross at thisismyurl.com)
http://thisismyurl.com
WordPress Consulting, Design & Programming
Toronto - (416) 900-3731
More information about the wp-hackers
mailing list