This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago ago by Jack Richardson
Hello, I would remove the fields “WEBSITE” and “capatcha” from my contact form. thanks.
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.
You must be logged in to reply to this topic.Log in/Sign up