Page 1 of 1

Re: CGFeedback how tomake "Additional Comments" textbox smal

Posted: Tue Jan 21, 2014 2:40 pm
by JohnnyB
If the HTML is like this:

Code: Select all

<div class="col70" style="float: left; width: 70%;">
<textarea class="cms_textarea" rows="15" cols="80" name="m9233acomment"></textarea>
</div>
Without seeing your site's CSS, you could start by adding a rule that will make the textarea smaller using a %:
example: .col70 .cms_textarea {width: 80%}

CSS will override the textarea's cols attribute.

But, you could probably try something like this in your template:

{$input_comment|replace:'cols="80"':'cols="50"'}

use whatever cols value you need....

Re: CGFeedback how tomake "Additional Comments" textbox smal

Posted: Tue Jan 21, 2014 2:41 pm
by Jo Morg
CrushCreate wrote:I have looked in the "Comment Form Template" but did not see it specified there.

I only see
<div class="col70" style="float: left; width: 70%;">
{$input_comment}
</div>

Where do I need to make the change to the {$input_comment}?
Please specify a path to the file in a typical installation.
You'll have to use a Smarty modifier, replace in order to do what you want, something like:

Code: Select all

{$input_comment|replace:'rows="15" cols="80" ':'<whatever_replacement_you need>'} 
And you'll have to use it on the template: "Comment Form Template".