WordPress.org

Support

Support » Plugins and Hacks » [Resolved] HTML code for contact form

[Resolved] HTML code for contact form

Viewing 9 replies - 1 through 9 (of 9 total)
  • buzztone
    Participant

    @buzztone

    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?

    buzztone
    Participant

    @buzztone

    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!

    buzztone
    Participant

    @buzztone

    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!

    nope..

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

    buzztone
    Participant

    @buzztone

    You need to use the following:

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

    See Contact Form 7 – FAQ http://contactform7.com/faq/#Can_I_embed_a_contact_form_into_my_template_file

    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.

    thanks!!

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