WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
Button Shortcode - How To Input Script to Open iFrame (1 post)

  1. wp-boffin
    Member
    Posted 7 months ago #

    First off, got say that I really love the Shortcodes Ultimate plugin.

    I'm trying to replace a "stoggy" button with one created with the button short code. The button that I wish to replace uses javascript and opens an iFrame, in which it displays web page content. I can't get the shortcode button to open the iframe. Here's the shortcode that I'm using:

    [su_button url="http://my.setmore.com/shortBookingPage/564a84fa-2d67-48f4-85ac-3aab66922b9f" style="flat" background="#6E9C38" color="#ffffff" size="6" center="yes" icon="icon: calendar" onclick="<script id='setmore_script' src='http://my.setmore.com/js/iframe/setmore_iframe.js'></script>"]BOOK APPOINTMENT[/su_button]

    The url to my web page is http://webtek-savvy.com/appointments/

    Would like to know if the iframe NOT opening is due to incorrect syntax or due to a shortcode limitation.

    Thank you.

    https://wordpress.org/plugins/shortcodes-ultimate/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags