• Resolved Claus

    (@taruk)


    Hi, is there a possibility to display the caption of the event featured image for the use to indicate the author of the image?

    Thanks for your support.

    Kind regards, Claus

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Claus,

    It’s not possible to do this without changing a plugin file. I don’t recommend this in case of future plugin updates. But if you want to do this, let me know and I will give you instructions.

    The featured image on the single event page is handled by your theme, so VS Event List has no control over it.

    Guido

    Thread Starter Claus

    (@taruk)

    Hi Guido,

    Thank you for your quick reply.

    I understand. Is there a hook at the position of the featured image in vsel archive template to put in the feature image of the current event manually? The Theme (GeneratePress with GenerateBlocks) has the ability for that. Then I could display the caption easily. In this case I would only need the name of the hook.

    If not I would appreciate to have the code for the plugin file. Maybe I can go further with this.

    Thank you for your support.

    Kind regards,

    Claus

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Plugin has no hook system.
    If you want caption in shortcode based list, open file vsel-page-template in your editor and go to the } tag at line 195. Add this underneath:

    $output .= '<span style="clear:both;float:right;">'.get_the_post_thumbnail_caption( get_the_ID() ).'</span>';

    Change float to left when your featured images are floating to the left.

    Guido

    Thread Starter Claus

    (@taruk)

    Hi, works great. Thank you!

    I added some html to get control over it:

    $output .= '<div class="vsel-caption"> ' . get_the_post_thumbnail_caption( get_the_ID() ) . ' </div>';

    Claus

    Plugin Author Guido

    (@guido07111975)

    Great, even better.

    Unfortunately it’s not possible to include the caption inside the image container, because the featured image function that I’m calling doesn’t support this. That’s why caption is added underneath.

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi Claus / @taruk

    In next version the featured image caption will be displayed as well. The featured image will be wrapped in a figure class. Similar to images with caption in default posts and pages.

    Guido

    Thread Starter Claus

    (@taruk)

    Hab Guido,

    that is Great! Thank you for your work.

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Have updated plugin, please let me know whether caption is being displayed properly or not.

    Guido

    Thread Starter Claus

    (@taruk)

    Hi Guido,

    Great, image caption is displayed exakt beyond the featured image. Works like a charm.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘VSEL: Display featured image caption’ is closed to new replies.