Tagged: , ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #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:


    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?




    Hey 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,

    This reply has been marked as private.

    Hi antoniolite,

    I see that the Editor menu in the Appearance menu is disabled. Where did you add the link?

    Best regards,


    Hi 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,

    • 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.


    Hi 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,


    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-49035


    I 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) {

    Hope it helps



    Thanks for sharing @antoniolite, much appreciated :-)

    Best regards,

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.