• I can’t seem to make both these shortcodes work together. i need a button that will open a popup—both have shortcodes.

    Button:
    [trx_button bg_color=”#8ed4cc” align=”center” top=”2em” bottom=”7em”]
    [/trx_button]

    Popup:
    [sg_popup id=11]

    I tried putting one or the other in the PHP Everywhere box but none of it is working. Please help. Here’s the whole code at the moment:

    [/vc_column_text][trx_button bg_color=”#8ed4cc” align=”center” top=”2em” bottom=”7em”][php_everywhere]BOOK NOW[/trx_button]

    In the PHP everywhere box:
    <?php echo do_shortcode(“[sg_popup id=11]”); ?>

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Alex

    (@alexander_fuchs)

    Hi,

    does the button appear? If yes, you should move the [php_everywhere] to the top of the page. It should not be in another element.

    Is the button set-up to open the popup? If not: PHP Everywhere is not able to do front-end logic. You would need to “connect” the button and the popup using javascript.

    Best regards,

    Alex

Viewing 1 replies (of 1 total)
  • The topic ‘Button and Popup shortcodes’ is closed to new replies.