Support » Plugin: Lightbox Plus Colorbox » How to load external iframe from Menu link?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I was helping mlgrippi with this earlier, and it looks like the the ‘CSS Classes’ that you can input on the custom menu items apply to the
    li element, not the link element directly.

    My assumption is that the javascript is looking for the href of the link for the element with the class=”lbpModal”, but since the custom menu applies this to the li element, there obviously isn’t one.

    A potential fix could be to have the script travel down to a child element to find the href.


    i’m trying to achieve that in javascript: find the child element of li having the class “lbpModal”.. but don’t now how..

    does anyone have an idea how to code that in javascript?

    Javascript has .childNodes that you might use:

    But it might be easier going through jQuery with something like .children():

    Hi all.

    I’m trying to achieve exactly what mlgrippi has, by the looks of the website, successfully done.

    Mlgrippi, is there any chance you could share the way you managed to get the button to open a lightbox window?

    Thanks in advance (fingers crossed).

    looking at the code it appears he switched to FancyBox

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to load external iframe from Menu link?’ is closed to new replies.