WordPress.org

Forums

Links shortcode
[resolved] Image Styling Shows Even Without an Image Present (3 posts)

  1. IAmTam
    Member
    Posted 1 year ago #

    Just wondering if there is a way to tell the plugin to not show the image styling when there isn't an image present. See this page as a reference:

    http://mormonmedianetwork.com/media-categories/exploring-doctrine/the-doctrine-and-covenants/the-doctrine-and-covenants-audio-2/

    ...where you can see that the styling (drop shadow, etc.) is showing up even though there is no image assigned for particular links.

    Thanks!

    http://wordpress.org/plugins/links-shortcode/

  2. IAmTam
    Member
    Posted 1 year ago #

    I think I figured this out too.

    I added the [optional at the beginning of the img line and ended with the ||] so with the image styling, mine looks like this:

    [optional <img src="[link_image]" style="width:230px;border:1px solid #DDDDDD;border-radius:9px 9px 9px 9px;box-shadow:-1px 3px 6px 3px rgba(0, 0, 0, 0.2);position:relative;bottom:30px;"></a>||]

    I don't know if that is the best way, but it worked! :)

  3. Apprique
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, that's exactly how it is meant to be used.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags

No tags yet.