poesiloe
Forum Replies Created
-
Hey @mplusb, thanks!
Finally got it working with this custom expression:
jQuery(“a[href$=’.jpg’]”).has(‘img’).addClass(“fancybox”).attr(“data-fancybox”);(I’ve got no clue why you had to take the fancybox attr away…, but at least it works now)
And I added class=”fancyboxforwp” to all image links…Thanks. Problem solved.
Your gratefull,
poesiloeHi @mplusb
I have the galleries already separated with data-fancybox=”gallery1″, “gallery2″ and so on.
I thought that when looking to the code you sent me the issue would be the lack of class=”fancyboxforwp”, so I added that to every link (https://www.annukapulainen.com/installations/).
Didn’t solve the problem…It’s now back on the custom expression:
jQuery”a:has(img)[href$=’.jpg’]”).addClass”fancybox”).attr(“data-fancybox”,”fancybox”).getTitle();Is the problem in that custom expression then that the titles don’t show?
Thankfully but desperately yours,
PoesiloeYes, you did probably misunderstand. ??
Yes I can get the titles to show when using the default gallery (like it is right now). But what I want is that cos there’s multiple galleries in the pages (separated by data-fancybox (previously I used rel)) and when I try to separate them by using custom expression (in the first post of the thread) then the titles disappear…
Is there something wrong in my custom expression then? I want separate galleries and the titles to show…
Yours desperately,
poesiloe- This reply was modified 5 years ago by poesiloe.
Hi!
Now in all of the site
https://www.annukapulainen.com
the titles do not appear.For example here:
https://www.annukapulainen.com/installations/
there are several different galleries (they work now just fine but no tiles showing).I cannot show you any page the titles working, because then I lose the galleries… I mean now I’m using the custom expression:
jQuery”a:has(img)[href$=’.jpg’]”).addClass”fancybox”).attr(“data-fancybox”,”fancybox”).getTitle();I can only get the titles to show when I change the gallery type altogether and then the galleries don’t work separately in a page…
Sorry I took so long to respond, BTW…
Poesiloe
Hi @mplusb,
No that doesn’t help… (and it does show the titles when using the default gallery type “Make a gallery for all images on the page”)…
I’m clueless…Thanks, any other suggestions?
poesiloe