Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author ethanpil

    (@ethanpil)

    I’m sure we can do it with a bit of css. do you have an example website / screenshot with what you are trying to achieve?

    Thread Starter Azurite

    (@azurite)

    Here’s a screenshot of what I mean: an image of the issue in question

    Plugin Author ethanpil

    (@ethanpil)

    You can add this to your css and it will do something liek that, although it will hide the links and make the icons non clickable, as the icons are not inside the tag…

    .link_with_icon {
      float: left;
    }
    .link_with_icon a {
      display: none;
    }

    You could also edit the plugin code and move the <img> into the and then leave the text blank…

    Thread Starter Azurite

    (@azurite)

    Would it be this part where I switch around where the A tag is so that it wraps around the single IMG tag:

    echo '<li class="link_with_icon"><img src="//'.$imgsrc.'"><a '.$fol.$tar.'href="'.esc_attr($$link).'">'.esc_attr($$name).'</a></li>';

    So I would make it look like this instead:

    echo '<li class="link_with_icon"><a '.$fol.$tar.'href="'.esc_attr($$link).'"><img src="//'.$imgsrc.'">'.esc_attr($$name).'</a></li>';

    Plugin Author ethanpil

    (@ethanpil)

    yup

    Thread Starter Azurite

    (@azurite)

    Awesome, that worked! I used the CSS

    .link_with_icon {
    	float: left;
    	list-style-type: none;
    }

    to hide the bullet point as well.

    Thank you!

    Plugin Author ethanpil

    (@ethanpil)

    great! don’t forget to rate the plugin! ??

    also if you update to a new version it will likely delete your customizations so watch out… I’ll be pushing out an update soon.

    Thread Starter Azurite

    (@azurite)

    Thankfully I wrote the customizations down so I can apply them later, if need be.

    Hopefully there’ll be a way to update it so that people can choose to have images only or images with text, linked just the way they want.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Links not in a list’ is closed to new replies.