Jump to content

[SOLVED] How to change textarea default size on contact page


Recommended Posts

Hi,

 

On my shop built with Prestashop 1.5.6, the default size textarea for the customer message is

77 px x 242 px.

 

Such default size is very tight.

Of course the customer can extend the size, providing that he understands how to do it...

 

But, is there a way to increase the default textarea size ?

 

Thank you in advance for any reply.

 

Patrick

Edited by patrmich (see edit history)
Link to comment
Share on other sites

you can do it with css styles

open contact-form.css file form your theme /css/ directory and increase height and width of:
 

#contact p.textarea textarea {
height: 80px;
width: 270px;
border: 1px solid #ccc;
font-size: 12px;
color: #666;
}
Link to comment
Share on other sites

Hi,

Thank you vekia for your reply.

I tried what you suggested, but it did not work.

The url of the contact page is ../index.php?controller=contact-form

On this page, when using Google Chrome Inspect Element, I can see that the default size of the textarea is 77 px x 242 px.
And I cannot see a related css with this size.

Thank you in advance for any reply.

Patrick

Link to comment
Share on other sites

  • 2 weeks later...

Hi Vekia,

 

I found a way to increase the default size of the textarea on the contact page, by amending the contact-from.tpl page as follows :

 

 

replacing :
<textarea id="message" name="message" rows="15" cols="10">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}
by
<textarea id="message" name="message" rows="15" cols="80">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea>
 
Is there any problem doing that ?
 
Thank you,
 
Patrick
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...