patrmich Posted March 5, 2014 Share Posted March 5, 2014 (edited) 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 March 19, 2014 by patrmich (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 5, 2014 Share Posted March 5, 2014 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 More sharing options...
patrmich Posted March 7, 2014 Author Share Posted March 7, 2014 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-formOn 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 More sharing options...
vekia Posted March 7, 2014 Share Posted March 7, 2014 code that i pasted is for page you mentioned. there are several possibilities why it doesnt want to work. please share url, it's necessary to inspect it. Link to comment Share on other sites More sharing options...
patrmich Posted March 18, 2014 Author Share Posted March 18, 2014 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 More sharing options...
vekia Posted March 18, 2014 Share Posted March 18, 2014 no, everything is fine with your code. you can change it inline (as you did) or with css styles Link to comment Share on other sites More sharing options...
patrmich Posted March 19, 2014 Author Share Posted March 19, 2014 Hi, Thank you Vekia, I mark the topic as solved. Patrick Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now