Ready to get started?Download WordPress


adding filter to rss widget? (3 posts)

  1. multiplier
    Posted 5 years ago #

    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?

  2. multiplier
    Posted 5 years ago #

    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?

  3. llamaman
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic