Okay
  Public Ticket #1300329
Open 3rd Party Popup Plugin with Shortcode
Closed

Comments

  • Wilcon_de started the conversation

    Hi,

    another Question. 

    I am able to add a shortcode in a Textfield like this:

    [sg_popup id="XX" event="click"] Click Me![/sg_popup]

    I would like to do the same when clicking on an image.

    Can you give me an advice, please?

    Thanks,

    Matthias

  • [deleted] replied

    Hello Matthias,

    If you want to link layers, you can do that in the Layers -> Link & Attributes tab. You can apply an URL to the layers there, or even use a class/ID and attach it to an element on your site with a selector.

  • Wilcon_de replied

    Hi Attila, 

    thanks for the answer. 

    Sorry but I can't see how this could work:

    the Page I am talking about is 

    https://www.wilcondata.com/dwh-builder-new-version/

    If you click on "Hier klicken" in the image "Free Trial" a popup opens. 

    I can achieve this with [sg_popup id="XX" event="click"] Click Me![/sg_popup]. in the Html Textbox.

    In fact I would to open this poup if the user clicks on the image "Free Trial"

    This is not clear to me how to do this in the Tab "Link & Attributes"

    Thanks,

    Matthias

  • [deleted] replied

    Ah sorry, I misunderstood you.

    To achieve this you could create a popup slider that will be opened when a chosen element is clicked. The Popup section is located in the Slider Settings.

    If you want to trigger the popup with a button (layer) inside the slider, you will need to enter the following line to the Open By Click field: #example 
    And then set an ID in the Link & Attributes tab, for the same button (layer) with the same name: example

    In case you want to start a popup slider with a button outside of the a slider from your site, you will need to apply an ID (id="example") or class (class="example") on that button and enter the same selector for ID (#example) or class (.example) to the Open By Click field in the Slider Settings. 

    Please also make sure that the sliders that you want to use (the popups as well) are added to the page. You can also use the Slider Settings -> Popup -> Target Pages section for this purpose.