WordPress.org

Ready to get started?Download WordPress

Forums

contact-form on a template file? (3 posts)

  1. dekraan
    Member
    Posted 5 years ago #

    Hello all,

    I have a site, with a page called 'contact', that uses the template file page-contact.php

    On this page, I have a divbox where I would like the contactform to go. But how do I do this? Is there a plugin, that you can use on a template file? I'd be thankfull if anyone could point me to it. I searched, but could not find it!

    to sum up: contactform plugin, in a divbox on a template file. Can anyone help me find one?

  2. equaldesign
    Member
    Posted 5 years ago #

    Dagon Design Formailer is a good plugin but doesn't require a template file. Just create a page called contact. Create your form in the plugins settings and then add the shortcode to that page to add the form to that page.

  3. dekraan
    Member
    Posted 5 years ago #

    Hello there,

    I have found several contact plugins that don't require a template file, and that you can simply input somewhere by writing [contact form 1] or something like that.

    Because I am (and need to, for my design) using a template file, these kind of forms don't work.

    At the moment I found a trick with the Yoast (great!) Enhanced WP-contactform. To place this in my template, I used the following code:

    <?php echo wpcf_callback(); ?>

    Someone on this very forum suggested this and it works great, for as far as I can see. I do would like to know if there are 'better' suited plugins to do the job, though :)

Topic Closed

This topic has been closed to new replies.

About this Topic