Tagged: CONTACT FORM, lines, size
Hello to all,
In contact form text area is 7 lines. I need it smaller, just 4 lines. How I can change it please? Which code I should change please? I was looking in shortcodes js, but I just didn’t find some relevant code.
Thanks for help!
Milan
Hey Milan,
Please provide a link to the site in question if possible. You should be able to target it via css:
textarea {
height: 40px !important;
}
Let me know if this works for you.
Best regards,
Jordan Shannon
Hello Jordan,
I would preffer to change function directly if it is possible :) Thanks anyway.
Milan
Hi Milan :)
Please copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and find following at the top and remove it (please do not remove PHP opening tag)
if ( ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
and then add following code to Functions.php file of your child theme
require( 'class-form-generator.php' );
Then open class-form-generator.php file in your child theme and find
rows="7"
and change it as needed :)
Best regards,
Yigit
Hello Yigit! :)
Bravo! Excellent! This is really cool – I am always happy with enfold and support. First theme ever when I CANNOT say anything bad! Thank you very much! I am impressed as always.
Milan