Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #775140

    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

    #775141

    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

    #775229

    Hello Jordan,

    I would preffer to change function directly if it is possible :) Thanks anyway.

    Milan

    #775514

    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

    #775527

    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

    #775568

    Hi,

    Thank you for your kind words Milan! We are happy to have users such as yourself :)
    Let us know if you have any other questions or issues and enjoy the rest of your day!

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Contact form text area size’ is closed to new replies.