• Resolved sdonnet

    (@sdonnet)


    Hi,

    I need to use the popup with shortcode, for 1) translation reasons (“Vous avez sélectionné …”), 2) dynamic content (“You have 987 points”).

    So, in my PHP code, I write a kind of :
    echo do_shortcode('[popup ...]Text[/popup]');

    but this does not work. I don’t know why. Do I have to refer to an ID already declared in the popup list ? Do I miss something on calling such shortcode ?

    Of course, static and predefined popups work well for me…

    BR

Viewing 12 replies - 1 through 12 (of 12 total)
  • @sdonnet

    Sorry it’s not working for you, I’m sure we can find a solution.

    I’ll forward this ticket to our Lead Dev @danieliser and he’ll take a look as soon as possible.

    Thanks for your patience.

    Thread Starter sdonnet

    (@sdonnet)

    Thanks,

    I can just add a comment : all the HTML+JS code generated by the shortcode seems to be present in my web page, but the link (generated by the shortcode [popup_trigger]) is inactive. The same [popup_trigger] referencing a popup declared in admin triggers well.

    @sdonnet

    Have you tried using the [popup_trigger] shortcode and defining the arguments as laid out in this doc?

    Plugin Author Daniel Iser

    (@danieliser)

    @sdonnet – The [popup] & [popup_trigger] both require an id=”” parameter.

    If you use [popup id=”test”] then you would either use [popup_trigger id=”test”] or <span class="popmake-test">Text</span>.

    Hope that helps.

    Thread Starter sdonnet

    (@sdonnet)

    Hi,

    Yes I followed the doc, and yes, I take care of the ID.
    I am trying to go back to the basis : I have created a simple test page, with a popup-trigger calling a popup declared in the admin console (choose-roll, or id 300). You can check it at :
    https://sagas.cloud/test-pum
    (sorry for the bad contrast… Not yet set)
    I cannot click on “Click here for POPUP” to open it. I also tried with a tag=a
    In the source page, it seems that all code is generated (js, css, …)
    The shortcode to trigger is : [popup_trigger id="300" tag="span"]Click Here for POPUP[/popup_trigger]

    @sdonnet

    Thank you for the further details, I’ve asked @danieliser to look into this issue.

    Thank you for your patience.

    Thread Starter sdonnet

    (@sdonnet)

    Hi,

    any news ?

    Plugin Author Daniel Iser

    (@danieliser)

    @sdonnet – Looks like you got it all set up correctly. You have a JavaScript error on your site caused in the sagas-wordpress-library plugin. This error is breaking JS on your site preventing the popups from working at the moment.

    Hope that helps.

    Thread Starter sdonnet

    (@sdonnet)

    Ouch… Sorry, I left a JS error. I check again.
    Sorry again

    @sdonnet

    Let us know if that works.

    Thread Starter sdonnet

    (@sdonnet)

    Hi,

    It works now ! JS problems, effectively.

    Thanks again !

    @sdonnet

    Awesome, glad it works as intended now!

    If you haven’t already, please do take a moment to click that our plugin Works and to rate and review the plugin to spread the love! <3

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Online creation of popup’ is closed to new replies.