Hello, i could not seem to get the theme contact form to work so i installed contact form 7. I went to the display options ,>contact options > and put the contact page to "select page" but it still shows up. please help thanks!
I added Contact form 7 and I want to remove the themes contact form
6 posts from 5 voices-
Posted 1 year ago #
-
Hey,
in your template_contact.php you can remove:
<form action="" method="post" class="ajax_form"> <fieldset><?php if (!isset($error) || $error == true){ ?><h3><span>Send us mail</span></h3> <p class="<?php if (isset($the_nameclass)) echo $the_nameclass; ?>" ><input name="yourname" class="text_input empty" type="text" id="name" size="20" value='<?php if (isset($the_name)) echo $the_name?>'/><label for="name">Your Name*</label> </p> <p class="<?php if (isset($the_emailclass)) echo $the_emailclass; ?>" ><input name="email" class="text_input email" type="text" id="email" size="20" value='<?php if (isset($the_email)) echo $the_email ?>' /><label for="email">E-Mail*</label></p> <p><input name="website" class="text_input" type="text" id="website" size="20" value="<?php if (isset($the_website)) echo $the_website?>"/><label for="website">Website</label></p> <label for="message" class="blocklabel">Your Message*</label> <p class="<?php if (isset($the_messageclass)) echo $the_messageclass; ?>"><textarea name="message" class="text_area empty" cols="40" rows="7" id="message" ><?php if (isset($the_message)) echo $the_message ?></textarea></p> <p> <input type="hidden" id="myemail" name="myemail" value="<?php echo $email_adress_reciever; ?>" /> <input type="hidden" id="myblogname" name="myblogname" value="<?php echo $name_of_your_site; ?>" /> <input name="Send" type="submit" value="Send" class="button" id="send" size="16"/></p> <?php } else { ?> <p><h3>Your message has been sent!</h3> Thank you!</p> <?php } ?> </fieldset> </form>(This kind of beats the purpose of using the contact template, you can just as well assign the default template to your contact page and include your new contact form there)
Posted 1 year ago # -
thanks it worked!
Posted 1 year ago # -
Glad that Chris could help you :)
Posted 1 year ago # -
Hi,
I have the same question as Upoa. I know it will be difficult to delete or change the standard mail form. How could you change template_contact.php?
thanks in advance!
Bastiaan
Posted 10 months ago # -
Hi Bastiaan,
You can find template_contact.php inside your themes folder. The location should be: wp-content\themes\display\template_contact.php. Hope this helps. :)
Regards,
IsmaelPosted 9 months ago #
Reply
You must log in to post.














