WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Menu Widget
make title a link (2 posts)

  1. whatsupmf
    Member
    Posted 1 year ago #

    Any way to make the title of the menu a link?
    Thanks

    http://wordpress.org/extend/plugins/advanced-menu-widget/

  2. JohnnyPea
    Member
    Plugin Author

    Posted 1 year ago #

    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);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.