Forums

[Plugin: Enhanced WP Contact Form] How to delete a Field? (4 posts)

  1. buttagal
    Member
    Posted 5 months ago #

    How do I delete the "Website" field??

    I left the field name blank but it the field box still shows up.

    Please help. Thank you.

  2. sheiksoft
    Member
    Posted 5 months ago #

    Bump...!!! I too need to know how to delete a website field...
    I checked the php and found several field related to one field...Please help...

  3. sheiksoft
    Member
    Posted 5 months ago #

    ok i think i figured it out myself after digging into the code in my wordpress offline...

    To remove a particular field you have to remove two paths.In my case I want to remove "Your Website:" www.pcsafety.us
    Open Plugin Editor - Choose the Enhanced contact form plugin and open enhanced-wordpress-contactform/wp-contactform.php file in the editor.

    You have to comment the below lines...I used "//" for commenting as u know...

    Line 27
    // 'website' => '<input type="text" name="wpcf_website" id="wpcf_website" size="30" maxlength="50" value="' . $_POST['wpcf_website'] . '" />',

    Line 195
    <!--
    <label for="wpcf_website">' . __(get_option('wpcf_website_txt'), 'wpcf') . '</label>' . $wpcf_strings['website'] . '<br style="clear: both;"/>
    -->

    Save and check it out... If this resolves close the topic as Resolved...
    Thanks...

  4. carealproperties
    Member
    Posted 4 months ago #

    You can also go to the plugin edit and simply change the text "Your website" to "Your Phone Number" if you would like it. However if you are just looking to remove "Your website" and the text box the sheiksoft solution works just fine.

Reply

You must log in to post.

About this Topic