September 25, 2017 at 10:50 pm #856716
I tried to create a link to open a modal window… It’s working from the content of a page, but not from a link in the top menu… it open the link as a normal page, not in a modal window.
You can try here:
Using this to create the link:
<a class="open-popup-link" href="//ecorustico.com/wp-content/themes/ecorustico/puntodeventa.php?iframe=true">popup modal</a>
What am I missing?
AntonioSeptember 26, 2017 at 2:26 pm #856932
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
VictoriaSeptember 26, 2017 at 9:05 pm #857140September 27, 2017 at 4:33 pm #857593
I see that the Editor menu in the Appearance menu is disabled. Where did you add the link?
VictoriaSeptember 27, 2017 at 5:47 pm #857641
It’s an menu element attached to the enfold Secondary MenuSeptember 27, 2017 at 7:31 pm #857689
The thing is that the classes for the lightbox are added to the li element, not to the link itself.
You could try to add the link in the telephone field in the header, you can put html in there.
Try this code
<a class="open-popup-link mfp-iframe lightbox-added" href="//ecorustico.com/wp-content/themes/ecorustico/puntodeventa.php?iframe=true">popup modal</a>
September 27, 2017 at 8:31 pm #857699
- This reply was modified 1 year ago by Victoria.
thanks for your help, I did not think about that option, but it’s not working
I added a HTML link in that field, it shows on header but modal window is not working, it opens as a normal link. It’s strange that in the post content is working, but not in the header.
I guess I will think a different way to add this feature.September 28, 2017 at 11:31 am #857957
You could also try to put this code directly into the header.php, but better use a child theme for that. But I’m not sure it’s going to work there.
VictoriaNovember 29, 2017 at 9:02 pm #883184
Did you ever got this to work?
Lightbox from menu works
Lightbox from topmenu doesnt.
I followed this post and it does work for the main menu. But when I put the main-menu in the top – it stops working.
https://kriesi.at/support/topic/ (Purchase code hidden if logged out) – (Purchase code hidden if logged out) -menu/#post-49035November 29, 2017 at 9:31 pm #883190
I did it work from topmenu with this plugin:
Hope it helpsDecember 1, 2017 at 10:32 am #883802
You must be logged in to reply to this topic.