Adding Captions to Photos
This topic contains 15 replies, has 6 voices, and was last updated by Paolo 9 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
September 14, 2015 at 5:08 am #53050September 14, 2015 at 6:21 am #53053
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/#imagesSeptember 14, 2015 at 6:31 am #53054Thanks 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?
September 14, 2015 at 11:34 am #53088Hi 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#L1345Thanks,
Stiofan
September 14, 2015 at 1:16 pm #53098Thanks, 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!
September 14, 2015 at 2:05 pm #53108Yes, 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
September 15, 2015 at 1:36 am #53189Thanks! 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…
September 15, 2015 at 3:49 pm #53275Hi,
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.
September 15, 2015 at 11:17 pm #53301Gotcha. Looking forward to it.
While you’re at it, the alt tag is important for accessibility.
Thanks for the great product and support.
September 16, 2015 at 9:39 am #53317This 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
September 16, 2015 at 1:59 pm #53326Would 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
September 16, 2015 at 2:01 pm #53327Hi 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
December 16, 2015 at 5:34 pm #64079Is 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.December 16, 2015 at 6:04 pm #64086Hi,
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
December 16, 2015 at 8:03 pm #64115That’s my current plan B. Thanks Paolo!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket