Support » Themes and Templates » 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);

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hmm, I’ve tried other filtering like this with different functions (ex: wp_page_menu) and it worked fine. Any idea why wp_widget_rss would be any different?

    Did you figure this out? I am wondering the same thing. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding filter to rss widget?’ is closed to new replies.