• Resolved nateonawalk

    (@natesirrah)


    Micah,

    Thank you so much for your work — I have been dying for a plugin with this functionality! I will GLADLY donate a cup of coffee if you can help me figure out how to display the pulled image with its caption. I see per inspect element that the plugin naturally pulls ALT text — is there any way that you can display caption (or description/title, for that matter) with the file?

    This functionality would set your plugin apart from any others like it.

    Thank you!
    NS

    https://wordpress.org/plugins/mpress-image-refresh/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @natesirrah,

    I’m glad you’ve found this plugin useful! I’ve got some great news for you: I’ve updated the plugin to now allow you to optionally display image captions.

    This is all you have to do:

    [mpress_image_refresh attachment="5,7,9" caption="true"]

    When you do this, you will get the image output in a <figure> element and the caption in a <figcaption> element just after the image markup.

    Let me know what you think, or if you have any trouble with it.

    Thread Starter nateonawalk

    (@natesirrah)

    This works beautifully, but one issue results — when I include the caption stipulation, my <p> tags no longer affect the output (I can’t center the shortcode). Any advice on how I would implement paragraph styling to the outputted captions?

    Thanks so much!
    -Nate

    Thread Starter nateonawalk

    (@natesirrah)

    Update — I was able to use:

    display: block
    margin: auto

    to float the picture (figure) in the middle… but similar CSS does not work for figure-caption. Any ideas?

    Thanks!

    Thread Starter nateonawalk

    (@natesirrah)

    UPDATE: I was able to completely resolve this by using text-align: center as the CSS styling for the figcap. Thank you again Micah!

    Thread Starter nateonawalk

    (@natesirrah)

    <This topic is resolved>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display with Captions’ is closed to new replies.