- This topic has 11 replies, 3 voices, and was last updated 6 years ago by
David.
-
AuthorPosts
-
March 12, 2020 at 10:20 am #1193147
takkularapsis
Hi,
I have text link in page hero that should open image. Lightbox plugin and this code doesnt work…?
<a title="" href="http://nige.fi.www40.zoner-asiakas.fi/wp-content/uploads/2020/03/LTX_Alue.jpg"><img />(Lähitaksi alueelta)</a>If i put this line anywhere else, lightbox opens.
So is there a way to open lightbox in page hero?
March 12, 2020 at 10:23 am #1193149Leo
StaffCustomer SupportHi there,
Have you fixed this?
Looks like it’s working for me:
https://www.screencast.com/t/p1Fykb7lI noticed that your HTML above has a img closing without an opening.
March 12, 2020 at 11:10 am #1193173takkularapsis
Thank you for quick reply.
It doesnt open the link in lightbox, it opens it in new page.
I tryid also with this link and it opens in lightbox if i put it in everywhere but page hero.
<a rel="lightbox" href="http://nige.fi.www40.zoner-asiakas.fi/wp-content/uploads/2020/03/LTX_Alue.jpg">(Lähitaksi alueelta)</a>It should look like this https://snipboard.io/AyQ4PC.jpg
March 12, 2020 at 11:23 am #1193183Leo
StaffCustomer SupportThe page hero content just takes normal HTML like the page content so I’m not sure why it isn’t working.
Can you start a test page, add the link in page hero and page content so I can try to spot the difference?
Let me know 🙂
March 12, 2020 at 11:52 am #1193202takkularapsis
March 12, 2020 at 12:15 pm #1193212Leo
StaffCustomer SupportJust to confirm, the HTML is exactly the same in both cases?
Looks different from the inspector:
https://www.screencast.com/t/PKlIRoBv5LRMarch 12, 2020 at 8:49 pm #1193421takkularapsis
Hey,
Now it is the same ( as under this ), i dont know how was it changed earlier. It still does the same and doesnt open lightbox…
<a href="http://nige.fi.www40.zoner-asiakas.fi/wp-content/uploads/2020/03/LTX_Alue.jpg" rel="lightbox">(Lähitaksi alueelta)</a>March 13, 2020 at 3:19 am #1193582David
StaffCustomer SupportHi there,
which lightbox plugin are you using ?
March 13, 2020 at 4:18 am #1193619takkularapsis
Hi,
Im using Simple Lightbox.
March 13, 2020 at 4:41 am #1193627David
StaffCustomer SupportLooks like that plugin only looks for links in the_content of the Post or Page, which the Header Element sits outside of:
Have you tried another plugin? eg.
March 13, 2020 at 5:00 am #1193644takkularapsis
Hi,
Changed the plugin and it worked. Thank you. Have a nice weekend!
March 13, 2020 at 5:01 am #1193646David
StaffCustomer Supportglad to hear that 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.