Support » Plugin: Contact Form 7 » HTML code for contact form

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am not clear what you are looking for from your question.

    However if you want the output HTML code you just need to view the Page Source Code (Firefox > Web Developer > Page Source) on the live page and look through the HMTL for the form.

    yes that’s what I mean, however because my form includes Captcha, when I look at the source code, it does not show the lines of dynamic script. So, is there a way I can see the code including the dynamic script that calls for the Captcha?

    Captcha is done via Javascript. You would need to hunt that down in the various Javascript links in the Head section of the page source.

    Can’t understand why you would want to “hard that code it into a page”. If you just add the relevant forms CF7 shortcode to your page, the CF7 plugin adds all the necessary code.

    its because I want it in my footer which is not widgetized .. however at this point I think that’s what Im going to do rather than hardcode it in. thanks!

    In that case I would just put the CF7 shortcode in the footer template file – probably called “footer.php”.

    If this resolves your question, it helps others contributing here, if you can flag your post as [resolved].

    you mean, I can put a shortcode in to footer.php?? I didn’t know that!


    [contact-form-7 id=”617″ title=”capta contact form”]
    in a php file just translates as text content

    You need to use the following:

    <?php echo do_shortcode( '[contact-form-7 id="617" title="capta contact form"]' ); ?>

    See Contact Form 7 – FAQ

    You may have do a little Google searching for a bit more detail on how to do it your specific case, but the technique definately works.


Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘HTML code for contact form’ is closed to new replies.