• Resolved Rebel21

    (@rebel21)


    Great new lightbox plug-in. Love the exif info.

    How to display title and caption like the plug-in page ?
    I’ve just a N/A.
    In the media page, the 3 fields are filled in.

    How to put a margin on top of the picture ?

    And a suggest: make the prev/next button a little bigger

    • This topic was modified 8 years, 1 month ago by Rebel21.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello Rebel21,

    I am very glad that you enjoy using our plugin !

    For your problem, to be honest it’s Jordy ( the plugin author ) who is dealing with retrieving these datas.

    But after a few test on my local website, it seems that he is actually retrieving the title and the description directly from the photo’s exif !

    I will ask him to check that, it should indeed be nice to be able to use the wordpress title / description fields in case there is no title / description in the exif of the picture !

    For your suggestion, I will definitely try and see how it looks with bigger navigation arrows ! However, you will understand that it’s hard to please everyone so I can’t guarantee you that it will be set bigger by default. However I can guide you to change the size manually on your website.

    Best regards,

    Thread Starter Rebel21

    (@rebel21)

    Thanks for your answer Thomas,

    Finally I use this (in mwl_run.php)to get datas from media:

    $alt_text = get_post_meta( $id, '_wp_attachment_image_alt', true ); // Display Alternative text (Texte alternatif)
    $a = get_post($id);
    $caption =  $a->post_excerpt; // Display Caption (Légende)
    $description = $a->post_content; // Display Description (Description)

    and

    'title' => empty( $meta['image_meta']['title'] ) ? $alt_text : $meta['image_meta']['title'],
    'caption' => empty( $meta['image_meta']['caption'] ) ? $caption : $meta['image_meta']['caption'],

    for the prev/next button, it’s here:

    .mwl-container.photography .mwl-content .control-nav {
      font-size: 40px;
    Thread Starter Rebel21

    (@rebel21)

    Another way:

    $img = wp_prepare_attachment_for_js($id);
    $caption =  $img['caption']; // Display Caption (Légende)
    $description = $img['description']; // Display Description (Description)
    $alt_text = $img['alt']; // Display Alternative text (Texte alternatif)
    Plugin Author Jordy Meow

    (@tigroumeow)

    What a coworker, blaming me! ??

    You are right @rebel21, it’s better to use the info in WP for that instead of the EXIF. I did this change. However, you are using the ALT as the CAPTION, in my code I will not do this but feel free to change it (however that will break at every each update). Let’s see if we can add an option in the future about this. But caption should be caption I think ??

    I am waiting for @kywyz to make a few more changes then we will release the new version of the plugin. So thanks a lot for your feedback @rebel21 ?? And if you feel like it, don’t hesitate to post a little review, the plugin is new so basically its success depends a lot on reviews.

    Cheers!

    Hello Rebel21,

    We just updated the plugin with what we discussed together,

    We would be really glad to hear what you think of this new version !

    Best regards,
    Thomas

    Thread Starter Rebel21

    (@rebel21)

    Great update !

    Good size for prev/next buttons, title and caption are fine displayed ans I really like the exif info.

    Does the box work with non-wordpress media ?
    I tried with picture hosted on my Flickr gallery, the box doesn’t pop-up.

    Continue the great work…

    Hello Rebel21,

    We are glad that you like this update !

    Unfortunately, no, it won’t trigger on images included with an URL for now. It would be a good idea to add the support for these images in the futur.

    Please feel free to leave a review, as Jordy said earlier it’s really helping us as the plugin is new ??

    Best regards,
    Thomas

    PS: I’m closing this thread, but feel free to open a new one for any other suggestion !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to display title and caption ?’ is closed to new replies.