• Resolved sdonnet

    (@sdonnet)


    Hi,

    I am generating a popup from a string, and call the do_shortcode() function to create it, and insert it in my HTML. I am able to configure a lot of things, but not zindex nor overlay_zindex. The documentation seems to indicate that they are not parameters of [popup] shortcode, but these index have no default values. I want to force them to 1999999999 or same kind of value.

    My code is (before a sprintf with the good values) :

    $block='[popup id="%s" title="%s" theme_id="%d" size="large" zindex="1999999999" overlay_zindex="1999999998"]<div id="%s">%s</div>[/popup]';
    $block = do_shortcode($block);

    Is there an other way to specify zindex ?

    Best regards

    Sylvain

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Sylvain,

    A z-index value is a CSS property associated with an HTML selector or element. That property should properly be defined in a stylesheet or by inline-CSS passed using JavaScript.

    What is the context in which you are generating the code block above?

    I’m curious why you are not using the Popup Maker plugin to register the [popup] shortcode.

    Thread Starter sdonnet

    (@sdonnet)

    Hi,

    Thanks for the reply.

    I used the shortcode, instead of a pre-registered popup, because the content (in my example, the <div id=”%s”>%s</div>) is built from PHP, by calling et querying external DBs or webservices.

    Regarding your reply, does that mean I can modify the zindex and overlay_zindex, by Javascript ?

    Hello @sdonnet:

    I would prefer that you ask this question via our Help Scout system at https://wppopupmaker.com/support/. It’s easier that way for me to pull in the plugin developer when I need to.

    And on this ticket, I need his input.

    • This reply was modified 7 years, 4 months ago by Robert Gadon.
    • This reply was modified 7 years, 4 months ago by Robert Gadon.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘zindex not taken into account during do_shortcode’ is closed to new replies.