-
AuthorPosts
-
September 25, 2017 at 10:50 pm #856716
Hi,
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:
And 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?
Regards,
–
AntonioSeptember 26, 2017 at 2:26 pm #856932Hey Antonio,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaSeptember 26, 2017 at 9:05 pm #857140This reply has been marked as private.September 27, 2017 at 4:33 pm #857593Hi antoniolite,
I see that the Editor menu in the Appearance menu is disabled. Where did you add the link?
Best regards,
VictoriaSeptember 27, 2017 at 5:47 pm #857641It’s an menu element attached to the enfold Secondary Menu
September 27, 2017 at 7:31 pm #857689Hi antoniolite,
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>
Best regards,
Victoria- This reply was modified 7 years, 1 month ago by Victoria.
September 27, 2017 at 8:31 pm #857699Hi
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 #857957Hi antoniolite,
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.
Best regards,
VictoriaNovember 29, 2017 at 9:02 pm #883184Did 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/how-to-properly-open-video-in-lightbox-from-a-dropdown-menu/#post-49035November 29, 2017 at 9:31 pm #883190I did it work from topmenu with this plugin:
In top menu, just a link with plain HTML and a bit of custom JavaScript
<script type="text/javascript"> jQuery('#puntodeventa').click(function(e) { e.preventDefault() modal_dialog_open(); }); </script>
Hope it helps
December 1, 2017 at 10:32 am #883802 -
AuthorPosts
- You must be logged in to reply to this topic.