Okay
  Public Ticket #4376872
Button link to open lightbox image
Open

Comments

  •  2
    SamType40 started the conversation

    Hi,

    Is there an option to open the link from a button to a lightbox image instead of linked to a website page.

  •  365
    Pat replied

    Hi Sam,

    Great to have you back.

    Unfortunately, this isn't possible with the standard Nectar Button element since it's primarily designed to link to a page URL. That said, you can absolutely create a button that opens an image in a lightbox by using the Raw HTML element instead:

    4387741951.png

    Then add the following HTML code making adjustments where possible:

    <a href="uploaded_image_url" class="nectar-button large regular accent-color regular-button" data-fancybox>
        <span>view image</span>
    </a>

    Give this a try and let us know how it works out.

     

    Best wishes,

    Salient Theme Support

  •  9,431
    Tahir replied

    Hi Again,

    Thanks for reaching out! .

    Try using the Call to Action Page element instead as it offers lighbox features: 2024552412.png

    Best,

     


     Salient Support Team 


  •  2
    SamType40 replied

    That worked! Thank you.

  •  365
    Pat replied

    Hi Sam,

    Glad we could help you get this up and running.

    Happy coding!

     

    Best wishes,

    Salient Theme Support