Remove fields the contact form - by gulisz

This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago ago by Jack Richardson

  • Avatar: gulisz
    gulisz
    Participant
    July 15, 2015 at 21:45

    Hello, I would remove the fields “WEBSITE” and “capatcha” from my contact form. thanks.

    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 16, 2015 at 07:52

    Hello,

    To remove “Website” field you need edit the file wp-content/themes/royal/framework/shortcodes.php and comment the code in line 249:

    <div class="form-group">
    <p class="form-name">
    <label for="contact-website" class="control-label"><?php _e('Website', ETHEME_DOMAIN) ?></label>
    <input type="text" name="contact-website" class="form-control" id="contact-website">
    </p>
    </div>

    To remove captcha edit the same file and comment the code in line 264:

    <div class="captcha-block">
    <img src="<?php echo $captcha_img; ?>">
    <input type="text" name="captcha-word" class="captcha-input">
    <input type="hidden" name="captcha-prefix" value="<?php echo $prefix; ?>">
    </div>

    and the code in line 223:

    $captcha_instance = new ReallySimpleCaptcha();
    $captcha_instance->bg = array( 244, 80, 80 );
    $word = $captcha_instance->generate_random_word();
    $prefix = mt_rand();
    $img_name = $captcha_instance->generate_image( $prefix, $word );
    $captcha_img = ETHEME_CODE_URL.'/inc/really-simple-captcha/tmp/'.$img_name;

    Also you need edit the file wp-content/themes/royal/framework/theme-functions.php in line 1364 and comment the code:
    $captcha_instance = new ReallySimpleCaptcha();

    Best regards,
    Jack Richardson.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.