Support » Plugin: Simple Links » [Plugin: Simple Links] Feature Request: break Tag between Image and Link

  • Resolved Florian

    (@djmcflow)


    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.

    Greetings
    Florian

    http://wordpress.org/extend/plugins/simple-links/

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

    (@mat-lipe)

    Hello,

    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.

    Cheers

    Thread Starter Florian

    (@djmcflow)

    Thanks for this info.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Simple Links] Feature Request: break Tag between Image and Link’ is closed to new replies.