Support » Plugin: Simple Links » [Plugin: Simple Links] linking the title?

  • Resolved AJ's WebCreations


    I like the look of this widget and wanted to see if it can do what I am looking for. I have two text box widgets and one link box widget in a side bar. I need to link the title of each to a page, I have found a text box widget that will let me make the title into a link but cannot find a link box widget the will let me make the title a link. I wanted to see if this could be done with yours or if not if you could maybe add that option?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mat Lipe


    Hello DnA,

    It is possible to link the widget title using a built in filter titled ‘simple_links_widget_settings’.

    Add this code to your theme’s functions.php file and change the link to wherever you would like the title to link to and it should work just fine.

    add_filter('simple_links_widget_settings', 'sl_link_title');
    function sl_link_title( $instance ){
    	/** Url to where you want this to link to goes here **/
    	$link = ""; 
    	$instance['title'] = sprintf('<a href="%s">%s</a>', $link, $instance['title']);
    	return $instance;

    This particular filter will change the link of the title in every Simple Links widget. If you would like to change a specific one or different links for different ones you will have to change the first line to match the id of the widget like so.
    add_filter('simple_links_widget_settings_simple-links-3', 'sl_link_title');

    Hope this helps.

    Thanks for the fast reply I will try that.

    This works but I can only see one link I imported them and it shows them in admin panel but when I go to the page it only shows 2 links. And only shows 2 link in firebug.

    I got it figured out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Simple Links] linking the title?’ is closed to new replies.