Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #4996

    Hello! How can i delete the contact form in .

    I don’t want to delete the upper form but the default theme form below.. Also i want to keep the “SEND” button of the default theme form to attach it to my custom form..How can i do this?

    Thanks again & again in advance!


    In template_contact.php remove line 87 to 103.

    <fieldset><?php if (!isset($errorC) || $errorC == true){ ?><h3><span><?php _e('Send us mail','habitat'); ?></span></h3>

    <p class="<?php if (isset($the_nameclass)) echo $the_nameclass; ?>" ><input name="yourname" class="text_input is_empty" type="text" id="name" size="20" value='<?php if (isset($the_name)) echo $the_name?>'/><label for="name"><?php _e('Your Name','habitat'); ?>*</label>
    <p class="<?php if (isset($the_emailclass)) echo $the_emailclass; ?>" ><input name="email" class="text_input is_email" type="text" id="email" size="20" value='<?php if (isset($the_email)) echo $the_email ?>' /><label for="email"><?php _e('E-Mail','habitat'); ?>*</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"><?php _e('Website','habitat'); ?></label></p>
    <label for="message" class="blocklabel"><?php _e('Your Message','habitat'); ?>*</label>
    <p class="<?php if (isset($the_messageclass)) echo $the_messageclass; ?>"><textarea name="message" class="text_area is_empty" cols="40" rows="7" id="message" ><?php if (isset($the_message)) echo $the_message ?></textarea>
    <input name="username" value="" id="username" class="username"/>


    <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; ?>' />

    This will remove your standard form. It will not be linked to your custom form as I do not have the time to go and create custom solutions.


    How can i delete the whole default theme form? And the Send button!


    Remove everything between <form action=”” … > and </form> on the same page you removed the previous code.


    OK! So now how can i attach the default form’s “SEND” button to my custom form in any page i have custom form?


    Why do you want to delete the form but use the send button? If it’s just because of styling reasons I’d restyle the current contact form button instead of using/mering to contact forms….

    You can “delete” the contact form by deselecting the current page imn your contact option panel. Go to Habitat Options > Contact Options and deselect your current contact page there.


    That’s the reason! I want to merge it to my custom forms! May i ask something? It is possible to edit in CSS the submit button from my custom form?


    I think it’s better to style the button of the contact form 7 form. Add following code to style1.css:

    cursor: pointer;
    margin: 0;
    background: url("../images/skin1/bg_button.png") no-repeat scroll left bottom transparent;
    border: 1px solid #D6DDDF;
    color: #96A1A6;
    text-shadow: 1px 1px 0 #FFFFFF;
    border-radius: 3px;
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    width: 105px;
    border-style: solid;
    border-width: 1px;
    font-family: Arial,Helevtica,Verdana,san-serif;
    font-size: 12px;
    padding: 8px 12px;

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘How can i delete the e-mail form?’ is closed to new replies.