adding filter to rss widget?
-
Long story, but I would like to change the class on the anchors within the rss widget to another class called “special_name”. I thought this would work, but no luck –
function edit_anchor($anchor) { return preg_replace('/<a class='rsswidget'/', '<a class='special_name'', $anchor, 1); } add_filter('wp_widget_rss','edit_anchor');
Any suggestions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘adding filter to rss widget?’ is closed to new replies.