WordPress.org

Ready to get started?Download WordPress

Forums

Simple Links
[resolved] Layout ot the links (13 posts)

  1. RobhJ
    Member
    Posted 1 year ago #

    Is it possible, if so how, to change the layout of how the come out after a shortcode?
    They come out with the image above and the link one row below. Is it possible to get them to be on the same row?

    //Roberth

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

  2. Mat Lipe
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Robhj,
    This feature is on the list for addition in a near future release. However for now, there is a built in filter for removing the line break. Add this code to your themes' functions.php file.

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

    Hope this helps.

    Cheers.

  3. RobhJ
    Member
    Posted 1 year ago #

    Thank you. That worked great.

    Thank you very much!

  4. anw618
    Member
    Posted 1 year ago #

    Hello,

    Is there a way to make the images float left?

    I'd also love to get rid of the bullet points if at all possible.

    The page I'm working on is at this address: http://www.drdansindelar.com/4106-2/

    Apologize in advance for my inexperience with PHP.

    Thanks! This plugin is just what I was looking for!

    Ashley

  5. Mat Lipe
    Member
    Plugin Author

    Posted 1 year ago #

    Hi anw618,

    You may accomplish this by adding some CSS to your them's style.css file like so.

    .simple-links-shortcode-item{
         list-style:none;
     } 
    
     .simple-links-shortcode-item img{
         float: left;
     }

    Hope this helps!

  6. anw618
    Member
    Posted 1 year ago #

    Hi Mat,

    Thanks for your quick response. Unfortunately, that didn't work.

    I tried deleting the site's cache, so I'm really not sure where to go from here...

    Thanks again,

    Ashley

  7. Mat Lipe
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ashley,

    Looks like your theme might be using a custom css file located here.
    /wp-content/themes/thesis_185/custom/custom.css

    It may work to add it to that file instead.

    Hope this helps!

  8. anw618
    Member
    Posted 1 year ago #

    Thanks, that did the trick with floating the image.

    Now I just have to figure out how to modify the spacing between entries and get rid of the bullet points.

    Thanks so much for your help!

    Ashley

  9. anw618
    Member
    Posted 1 year ago #

    Got the spacing. Bullets are still appearing though.

    Ashley

  10. Mat Lipe
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ashley,

    Looks like your theme has a higher CSS weight applied to li items.

    .format_text .simple-links-shortcode-item {
       list-style: none;
       list-style-type: none;
       margin-bottom: 12pt;
    }

    You could give this a try

  11. anw618
    Member
    Posted 1 year ago #

    That worked! You rock!

    Seriously. Thanks so much for your help!

    Ashley

  12. ResaMichelle
    Member
    Posted 9 months ago #

    The filter to remove the line break isn't working for me. Help?!

  13. Mat Lipe
    Member
    Plugin Author

    Posted 9 months ago #

    Hi ResaMichelle,

    The option to remove the line break is now available in both shortcodes and widgets and no longer requires using a filter.

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.