- This topic has 17 replies, 3 contibutors, and was last updated 10 years, 1 months ago by .
-
Question
Answers
- The question ‘Photoswipe picture title’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Media › Photoswipe picture title
@Michael @TJ
How can I change the title from a picture as shown in Photoswipe (in the current situation, posted by … and time ago) to the picture title (as uploaded) and shown in the media gallery?
Regards,
Marc
@mth75 what do you mean by the picture title? Do you have a screenshot example you can show me?
@TJ
Just open a picture (photoswipe) and look at the title on top. The title states:
[user] post a new picture (i.e.) 1 week, 1 day ago.
The title says nothing about the picture. It should show the Title or Caption attribute as shown in WordPresses media gallery.
@mth75 in buddyboss-media/assets/js/buddyboss-media.min.js find this:
.find(".activity-header")
replace with this:
.find(".activity-inner")
@TJ
I tried your suggestion, doesn’t work.
@mth75 that is the only solution I have please make sure you don’t have any conflicting caching plugins etc.
@TJ,
Tried with deleting local cache and cache plugins, doesn’t work.
Are you certain you edited the .min.js file
@TJ Very certain. Did you test this solution (just to be certain?).
Yea, I did. Let me check if we can remove the if statement. I’ll follow up later as I’m at work now.
@TJ
The solution DOES works for pictures on the wall (when opened in PhotoSwipe). Photo’s opened from a gallery page still shows the: [user] post a new picture (i.e.) 1 week, 1 day ago.
I’ll try to figure this out, how can I move this customisations to my child theme?
Regards,
Marc
@mth75 beyond that I’m not quite sure what else to try. That is the only location of the text.
@mth75 @tjchester In 1.0.7, available now, the text a user enters into the form is used as the photo title in Photoswipe. If no text is entered, it falls back to “user uploaded a photo [timestamp]”
@Michael @tjchester Thx. However, a picture opened from the gallery (for example: http://www.starry-night.nl/gallery/ ) still shows: “user uploaded a photo [timestamp]” Showing the form info is more important when opened in the gallery (no reference to what a user is seeing).
Regards,
Marc
@mth75 Yep, this is a known issue. We released the plugin without that yet implemented, because we fixed the iOS upload bug which was high priority and I wanted to get that out to everyone. This will be added in another release.