Simple Links
[resolved] Feature Request: break Tag between Image and Link (3 posts)

  1. Florian
    Posted 3 years ago #

    Hi Mat.

    I have a feature request. I use your plugin for Widget and want to use for shortcode too in next time.

    Now after every update my link widget is broken, because you added after the images a break tag. I use only small pictures like a favicon and this should be in one row. I think it looks better. So if you add a big picture it is better to have a break?

    My idea is to add something else, that you choose dynamically if you want the break or not. At this moment i go to your code and delete the break tag and replace it with a blank after every update.



  2. Mat Lipe
    Plugin Author

    Posted 3 years ago #


    The plugin supports using filters for things like this. Here is the code to add to your theme to remove the line breaks from the widget output.

    /** Removes the line breaks from the links list **/
    add_filter( 'simple_links_widget_output', 'remove_line_break' );
    function remove_line_break($output){
        return str_replace('<br>','',$output);

    Hope this helps.


  3. Florian
    Posted 3 years ago #

    Thanks for this info.

    I have added this to my child theme and all is good now.
    Awesome work!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic