Okay
  Public Ticket #147535
onclick button for lightbox
Closed

Comments

  • Andrea started the conversation
    I have an aweber lightbox sign up form that I want to trigger when someone clicks on the call to action button in salient. Is there a way to trigger an onclick lightbox web form?
  •  1,077
    ThemeNectar replied

    Hey Andrea!

    How are you triggering your form normally? Currently you can call a lightbox on any button or link by adding the class "pp" to it. For example:

    <a href="" class="pp"> My lightbox </a>

    Or

    <a href="" class="pp nectar-button accent-color"> My lightbox </a>

    for a nectar button.

    Are you already using your own lightbox and are just wondering how to hook it up to a nectar button or do you only have the form and no lightbox and were wondering how to add it into a lightbox and then trigger that from the nectar button?

    Cheers :)

  • Andrea replied

    Yes. I have created a lightbox sign up form in Aweber (URL is http://forms.aweber.com/form/47/496969847.htm) and would like to know how to hook it up to a nectar "call to action" button.

    If I go to "Salient" Tab in The Wordpress Dashboard

    Then go to "Call To Action Options" there is a section where you can add your call to action button link URL so that call to action shows up on every page. I was wondering if I could add a URL/link there that will trigger my aweber sign up form in a lightbox rather than having the sign up form open up in a new window.

    Hope that makes sense =)

    Thanks

  •  1,077
    ThemeNectar replied

    Hey again! Sorry for the delay - Wrapping up V3.0 caused a larger than normal queue to build - thanks for your patience! :)

    You would need to open up the footer.php file and change this line:

    <a class="nectar-button <?php echo $cta_btn_color;?>" href="<?php echo $cta_link ?>"><?php if(!empty($options['cta-btn'])) echo $options['cta-btn']; ?> </a>

    into this:

    <a class="nectar-button <?php echo $cta_btn_color;?> pp" href="http://forms.aweber.com/form/47/496969847.htm"> My Button Text! </a>

    Cheers :)

  • Andrea replied

    thanks. tried your suggestion and getting this error here. see attached image

  •  1,077
    ThemeNectar replied

    Try changing it to this instead:

    <a class="nectar-button <?php echo $cta_btn_color;?> pp" href="http://forms.aweber.com/form/47/496969847.htm?iframe=true&height=600&width=900"> My Button Text! </a>

    Cheers :)


     

  • Andrea replied

    ok. we seem to be getting closer but the optin opens up in a scroll box and when I adjust the width adn height to make iframe larger it still does not fit. 

    Plus I am not able to close the frame without refreshing the page so that is not going to work....

    Any other suggestions/options??

     

    Thanks

  •  1,077
    ThemeNectar replied

    Hey again Andrea,

    testing that same line in my setup I have different results. The width/height are fine for the lighbox and there's the standard close "x" on the top right to close it. Can you let me login to your setup so I can test everything for you?

    Cheers

  •   Andrea replied privately
  •  1,077
    ThemeNectar replied

    Hey again Andrea,

    the main conflict was coming from your video lightbox plugin - upon deactivation the behavior was restored to its normal state :)