Support » Plugin: Advanced Menu Widget » [Plugin: Advanced Menu Widget] make title a link

Viewing 1 replies (of 1 total)
  • Plugin Author Jan Bocinec

    (@johnnypea)

    If there will be more requests for this feature I can add it. I don’t want the plugin become bloated with unnecessary features.

    There is “widget_title” filter available so you can use it for this purpose…

    function my_linked_widget($title, $instance, $widget_id) {
    	if ( $widget_id == 'advanced_menu' )
    		return '<a href="#">'.$title.'</a>';
    
    	return $title;
    }
    
    add_filter('widget_title', 'my_linked_widget', 10, 3);
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Advanced Menu Widget] make title a link’ is closed to new replies.