WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Florian
    Member
    Posted 1 year 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.

    Greetings
    Florian

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

  2. Mat Lipe
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. Florian
    Member
    Posted 1 year 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

About this Topic