- This topic has 11 replies, 3 voices, and was last updated 1 year, 1 month ago by David.
March 12, 2020 at 10:20 am #1193147Tarko
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 #1193149LeoStaffCustomer SupportMarch 12, 2020 at 11:10 am #1193173Tarko
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.jpgMarch 12, 2020 at 11:23 am #1193183LeoStaffCustomer Support
The 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 #1193202Tarko
Yes here you go:March 12, 2020 at 12:15 pm #1193212LeoStaffCustomer SupportMarch 12, 2020 at 8:49 pm #1193421Tarko
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 #1193582DavidStaffCustomer SupportMarch 13, 2020 at 4:18 am #1193619Tarko
Im using Simple Lightbox.March 13, 2020 at 4:41 am #1193627DavidStaffCustomer Support
Looks 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 #1193644Tarko
Changed the plugin and it worked. Thank you. Have a nice weekend!March 13, 2020 at 5:01 am #1193646
- You must be logged in to reply to this topic.