javascript - How to set dynamic form on popup -
i have dynamic form code following:
<form accept-charset="utf-8" action="https://vd263.infusionsoft.com/app/form/process/60dfa9fa31db677b87c9061c53d0925b" class="infusion-form" method="post"> <input name="inf_form_xid" type="hidden" value="60dfa9fa31db677b87c9061c53d0925b" /> <input name="inf_form_name" type="hidden" value="sign newsletter" /> <input name="infusionsoft_version" type="hidden" value="1.44.0.47" /> <div class="infusion-field"> <label for="inf_field_firstname">first name *</label> <input class="infusion-field-input-container" id="inf_field_firstname" name="inf_field_firstname" type="text" /> </div> <div class="infusion-field"> <label for="inf_field_email">email *</label> <input class="infusion-field-input-container" id="inf_field_email" name="inf_field_email" type="text" /> </div> <div class="infusion-submit"> <input type="submit" value="submit" /> </div> </form> <script type="text/javascript" src="https://vd263.infusionsoft.com/app/webtracking/gettrackingcode?trackingid=d611bf89e5e09e0678e6bf94789f54a0"></script>
i want show on popup in wordpress issue not supporting javascript using ninja popup , popup builder. please suggest me plugin support or have create own popup.
wordpress has built in routines enqueue javascript , css, best insert below theme's function.php
function ninja_popup_add_extra_css_and_js() { wp_register_script('extra_javascript', "https://vd263.infusionsoft.com/app/webtracking/gettrackingcode?trackingid=d611bf89e5e09e0678e6bf94789f54a0" ,null, true); //change null array('jquery') if javascript depends upon jquery wp_enqueue_script('extra_javascript'); wp_register_style( 'extra_css', get_template_directory_uri() . '/css/my_extra.css', array(), '1', 'all' ); wp_enqueue_style( 'extra_css' ); } add_action('wp_enqueue_scripts', 'ninja_popup_add_extra_css_and_js');
note have make sure add necessary css plugin, either save in theme css folder , call my_extra.css or change code above suit loading css external web page.
Comments
Post a Comment