-
AuthorPosts
-
March 6, 2017 at 11:25 am #756307
Hi,
I use a masonry gallery with lightbox to show some paintings. If i click on 1 image i open a lightbox with the image. So far so good.
Now i want to show the title beneath the lightbox (on the same row as image 1of 2 for example).
I followed the instructions on
but it does not work. I cleared all cache etc…
Can you help me out?
THX Freek- This topic was modified 7 years, 9 months ago by Freek.
March 9, 2017 at 3:37 pm #758403Hey Freek,
Please go to Media > Library and edit your images titles and that should help :)
Best regards,
YigitMarch 14, 2017 at 8:12 am #760508Hi Yigit,
I did that but no luck. Can you look into it?
See private section for URL.
THX FreekMarch 15, 2017 at 4:34 pm #761489Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
YigitMarch 15, 2017 at 4:45 pm #761497See Private section.
THX FreekMarch 17, 2017 at 7:12 pm #762662Hi Freek,
Please edit enfold/avia.js find this function:
$.fn.avia_activate_lightbox = function(variables)
and replace
image: { titleSrc: function(item){ var title = item.el.attr('title'); if(!title) title = item.el.find('img').attr('title'); if(!title) title = item.el.parent().next('.wp-caption-text').html(); if(typeof title == "undefined") return ""; return title; } },
with this
image: { titleSrc: function(item){ var title = item.el.attr('title'); if(!title) title = item.el.find('img').attr('title'); if(!title) title = item.el.parent().next('.wp-caption-text').html(); if (!title) title = item.el.find('div.av-masonry-entry-title.entry-title').html(); if(typeof title == "undefined") return ""; return title; } },
Just one extra line added there.
Let me know if this was helpful.
Best regards,
VictoriaMarch 17, 2017 at 7:14 pm #762664Hi Freek,
I did not find any control to turn off the music, I think you should give your users that option.
Best regards,
VictoriaMarch 19, 2017 at 10:44 am #763160Hi Victoria,
Due to customer requirements, the music is not controllable. It is what it is.
If i change avia.js, this change is gone after an Enfold update. How can i avoid this? Copy the avia.js to enfold child?
THX FreekMarch 19, 2017 at 4:57 pm #763241Hi Freek,
Follow the instructions in this thread and that should help you with it :) https://kriesi.at/support/topic/use-avia-js-in-child-theme/
Best regards,
NikkoMarch 20, 2017 at 9:15 am #763531Hi,
I changed avia.js but no title below the masonry lightbox.
What is wrong?
THX FreekMarch 20, 2017 at 12:45 pm #763613Hi,
I can see that it’s loading the avia.js file properly (link in private content). Does the code Victoria working when you changed it in the parent theme (Enfold) and it’s not working when avia.js is called via child theme?
Best regards,
NikkoMarch 21, 2017 at 10:33 am #764091I deleted the avia.js file in enfold theme and copied the avia.js to the child theme JS folder and i added the code to the functions.php in enfold child theme folder.
THX Freek- This reply was modified 7 years, 9 months ago by Freek.
March 22, 2017 at 7:05 am #764610Hi Freek,
Did it work using that method?
Best regards,
NikkoMarch 22, 2017 at 7:52 am #764631No unfortunately it did not work. Very strange. Can you look into it again?
THX FreekMarch 25, 2017 at 12:24 pm #766579Hi Freek,
There is another Javascript error on that page, so that gallery under #work does not even show in Chrome on Mac. Did you have it when avia.js was in enfold theme folder?
Best regards,
VictoriaMarch 27, 2017 at 9:41 am #767273I tries both (in enfold and enfold-child folder).
Regards FreekMarch 27, 2017 at 3:29 pm #767494Hi Freek,
Please update the theme and we’ll see what we can do then.
Best regards,
VictoriaMarch 27, 2017 at 4:56 pm #767561Theme is updated.
regards FreekMarch 28, 2017 at 2:09 pm #768145March 28, 2017 at 2:41 pm #768165Hi Victoria,
I don’t see it. Cleared all cache etc.
Maybe there is a java problem as you mentioned before. Can you point me in the right direction?
THX FreekMarch 28, 2017 at 6:45 pm #768377Hi Freek,
In your browser press ctrl+f5 on Windows or cmd+r on Mac.
Let us know if this was helpful.
Best regards,
VictoriaMarch 29, 2017 at 8:59 am #768673Victoria,
Still no title in lightbox. See screenshot link in PS.
What is going on? I tried on Safari, Chrome, Firefox, IOS and cleared all my cache.
THX Freek- This reply was modified 7 years, 9 months ago by Freek.
March 31, 2017 at 1:25 pm #769928Hi Freek,
In your avia.js I don’t see the code I gave you earlier (code below is without my code)
image: { titleSrc: function(item){ var title = item.el.attr('title'); if(!title) title = item.el.find('img').attr('title'); if(!title) title = item.el.parent().next('.wp-caption-text').html(); if(typeof title == "undefined") return ""; return title; } },
this is why you don’t see the titles.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.