popup - Wordpress Modal contact form using CF7 and Easy Fancybox not working? -
i have been attempting create modal contact form using 2 plugins: contact form 7 , easy fancy box.
i using visual composer in order build site..
i have therefore created 'raw html' element, , in element have following code:
<a href="#contact_form_pop" class="fancybox">contact us</a> <div style="display:none" class="fancybox-hidden"> <div id="contact_form_pop"> <?php echo do_shortcode('[contact-form-7 id="4" title="contact form 1"]'); ?> </div> </div>
this not work , browser seems comment out php code, know php server side language following tutorial found. result when button clicked:
i tried code without php , wordpress' 'do_shortcode', tutorial instructed:
<a href="#contact_form_pop" class="fancybox">contact us</a> <div style="display:none" class="fancybox-hidden"> <div id="contact_form_pop"> [contact-form-7 id="4" title="contact form 1"] </div> </div>
this didn't work , resulted in:
if me circumnavigate these issues , create modal/pop-up contact form whilst using visual composer (i ahve built of site using it) extremely greatful!
the code pasted works, problem shortcode not picked wordpress. make sure paste code in text block, , mode of text block 'text' not 'visual'.
just tested , works fine.
Comments
Post a Comment