WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
how to output the form in header.php (2 posts)

  1. devric
    Member
    Posted 3 years ago #

    Hi there
    I wanted to use this form as a slide out contact form for any page using jquery, how do i echo this form in my header.php

    Thanks

  2. base007
    Member
    Posted 3 years ago #

    Add this code to your theme file:

    <?php echo do_shortcode( '[contact-form 1 "Contact form 1"]' ); ?>

    That should work for you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic