Karen Doyle
asked 9 years ago


Could you please tell how to make register form like at your website without adding new plugins?
Is it possible if I have contact7 installed already.


1 Answers
answered 9 years ago

At the moment, The Registration Form used for DesignWall has made for only our site and not officially released. So it’s hard for you to have it, unfortunately.
However, you can use the contact form 7 to create a Registration Form as you want.

So if you, for some reasons want to get password fields (that not supported for that moment by cf7) you can do it by adding somewhere in your functions.php following code:

function cfp($atts, $content = null) {
    extract(shortcode_atts(array( "id" => "", "title" => "", "pwd" => "" ), $atts));

    if(empty($id) || empty($title)) return "";

    $cf7 = do_shortcode('[contact-form-7 id="' . $id . '" title="' . $title . '"]');

    $pwd = explode(',', $pwd);
    foreach($pwd as $p) {
        $p = trim($p);

        $cf7 = preg_replace('/<input type="text" name="' . $p . '"/usi', '<input type="password" name="' . $p . '"', $cf7);

    return $cf7;
add_shortcode('cfp', 'cfp');

How it works:
Lets assume that you have following form:
[contact-form-7 id="7" title="Test"]

With following content:

<p>Your Name (required)<br />
    [text* your-name] </p>

<p>Your Email (required)<br />
    [email* your-email] </p>

<p>Subject<br />
    [text your-subject] </p>

<p>Your Message<br />
    [textarea your-message] </p>

<p>[submit "Send"]</p>

Hope this helps !

replied 9 years ago

Ohh It’s hard to understand for me as I not a programmer but I will play by ear. Thanks a lot

dominic Staff
replied 9 years ago

If you have any issue or question while use contact form 7, please let us know, I will check and help you.

Powered by DW Question & Answer Pro