WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Add a class to the widget on current page

[Resolved] Add a class to the widget on current page

Viewing 1 replies (of 1 total)
  • I use custom function so 🙂

    //allow html in widget title
    function lxb_change_widget_title($title)
    {
        //convert square brackets to angle brackets
        $title = str_replace('[', '<', $title);
        $title = str_replace(']', '>', $title);
    
        //strip tags other than the allowed set
        $title = strip_tags($title, '<a><blink><br><span>');
        return $title;
    }
    add_filter('widget_title', 'lxb_change_widget_title');
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Add a class to the widget on current page’ is closed to new replies.