Adding Captions to Photos

This topic contains 15 replies, has 6 voices, and was last updated by  Paolo 8 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #53050

    tabiLabs Inc
    Full Member
    Post count: 83

    Hello,

    Is there a way to add captions to the photos? When uploading them you can change the order or set as the feature photo, but no option to add descriptions/captions etc.

    They do not show up in the regular WP media explorer.

    Looking at the generated HTML, there is a “mfp-bottom-bar” div that has a “mfp-title” div, but it is empty.

    In MyPHP, the table “wp_geodir_attachments” where I can find the pictures and a “title” field, but changing that still does nothing….

    Example page where I want to add explanations to the images:
    http://www.accessible-japan.com/hotels/japan/tokyo/bunkyo/high-range/hotel-chinzanso-tokyo/#post_images

    Thank you

    #53053

    Guust
    Moderator
    Post count: 29970

    That is not quite possible at this time.
    The filename of the image will be used for the title attribute of the image, for example My_Photo.jpg will give a title attribute of My_Photo. But that only applies for the flexslider of the listing.
    See also https://wpgeodirectory.com/docs/core-export/#images

    #53054

    tabiLabs Inc
    Full Member
    Post count: 83

    Thanks for the quick reply.

    Is there an idea of when it might be available? I think it is very important for people trying to show a property/store/restaurant etc

    The function that builds the photos tab, what file is it located in?

    #53088

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Josh,

    This is in our future plans but is not possible at the moment.
    You can see the images are built here: https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/custom_functions.php#L1345

    Thanks,

    Stiofan

    #53098

    tabiLabs Inc
    Full Member
    Post count: 83

    Thanks, good to hear.

    Just pondering…

    In theory, could I go into MyPHP admin, find my pictures in wp_geodir_attachments, add some text to the “title” or “caption” field, then edit your function so it gets that info and echos it?

    You don’t need to waste your time telling me specifics, but if it could be done in theory…(but if you plan to implement it, maybe I shouldn’t touch anything?)

    Thanks!

    #53108

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes, that could be done very easily, the hard part is finding a way for a user to be able to add those on the front end easily.

    Stiofan

    #53189

    tabiLabs Inc
    Full Member
    Post count: 83

    Thanks! Right now I’m not allowing users direct access, so, I don’t mind adding stuff in MyPHP…

    If it is a one-liner, any hints would be nice! No real PHP experience…

    #53275

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    we would still have to apply the changes on the core plugin for everyone or you’d lose them after every update.

    We will keep this in mind and work on it in the future for sure, but at the moment we have much pressing priorities.

    Thanks for understanding.

    #53301

    tabiLabs Inc
    Full Member
    Post count: 83

    Gotcha. Looking forward to it.

    While you’re at it, the alt tag is important for accessibility.

    Thanks for the great product and support.

    #53317

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This is as good a place as any to discuss it…

    The DB title field is occupied by the file name with no extension so i think we should use the “caption” field to store the text.

    For the image gallery tab we can show the caption under the lightbox, this seems ok.

    For the image gallery slider on the details page we need to decide between the following:
    #1 show the text BELOW the image.
    Pros: no text over the image
    Cons: images with no text will have a empty space gap bellow them.
    #2 Show the text OVER the image at the bottom on a black transparent background.
    Pros: no empty space below images that have no caption
    Cons: text over image.

    The hard part will be finding a user friendly way to add caption on the front end, but i will think about that, for now please discuss the detail page slider options.

    Thanks,

    Stiofan

    #53326

    fuerstvonmartin
    Expired Member
    Post count: 5

    Would it be possible to add a text input field via the backend, letting the user add a caption text for each image separated by comma (just like tags)?

    However, we’re looking for a solution for this as well, as we will have user generated content and will need to show copyright information for each image.

    Thanks,

    Bernhard

    #53327

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Bernhard,

    I have an idea for how to add the text, it get’s complicated as the user can drag and drop the images to re-order them, so normal list solutios wont do, but i will deal with this, for now can we just discuss the following:

    For the image gallery slider on the details page we need to decide between the following:
    #1 show the text BELOW the image.
    Pros: no text over the image
    Cons: images with no text will have a empty space gap bellow them.
    #2 Show the text OVER the image at the bottom on a black transparent background.
    Pros: no empty space below images that have no caption
    Cons: text over image.

    Thanks,

    Stiofan

    #64079

    justmark
    Full Member
    Post count: 375

    Is there any updates on this? Where it becomes critical for me is in displaying copyright information on photos as when we use 3rd party photographers they often request that their copyright be displayed on their images.

    Personally I favor this approach only because it doesn’t force you to add a caption and thus you will not have the white line below a non-captioned image:

    #2 Show the text OVER the image at the bottom on a black transparent background.
    Pros: no empty space below images that have no caption
    Cons: text over image.

    #64086

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    at the moment the only way would be to add the copyright info on the picure itself using photoshop or any other picture editor.

    Thanks

    #64115

    justmark
    Full Member
    Post count: 375

    That’s my current plan B. Thanks Paolo!

Viewing 15 posts - 1 through 15 (of 16 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount