A simple contact form template for use inside a theme in WordPress
Every plugin I found was easy to implement, but very often to much overload in WordPress ... Tables, Shortcodes, includes on all pages in frontend and much more. For an simple contact form was it easy to use a page template.
Create a WordPress page called “Contact” or “Contact Me” or whatever. In the right sidebar you will see a drop-down list under “Page Template.” Choose this template “Contact.” At the top of the right sidebar, under “Discussion,” uncheck the box marked “Allow Pings.” Now save your work and you’re done.
In your page template called “Contact” or whatever inlcude the form template. Copy the template inside your theme.
<?php get_template_part( 'contact', 'form' ); ?>
Live: See the usage on my private site: http://bueltge.de/kontakt/
Code: See also the page template inside this repo for WordPress 'TwentyTen' template:
You can only set the string for textdomain, that is translatable for the language files of the theme.
The string was set on start of the form template
// settings // text domain string from theme for translation in theme language files $text_domain_string = 'default';
- PHP 5.2, tested on PHP 5.3
- WordPress ;)
This template is designed and developed by me (Frank Bültge)
Please let me know if you like the plugin or you hate it or whatever ... Please fork it, add an issue for ideas and bugs.
I'm German and my English might be gruesome here and there. So please be patient with me and let me know of typos or grammatical farts. Thanks
Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a small donation for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)