Kian Posted May 23, 2011 Share Posted May 23, 2011 After i upgraded my whmcs to version 4.5 all text custom fileds are huge. Why? Simple <input type="text" style="width: 75%;" value="" id="customfield284" name="customfield[284]"> How can i resize all fields? It's not a css rule and not even a template configuration. Style 75% probably has been set in php code but i can't edit it. 0 Quote Link to comment Share on other sites More sharing options...
Alistair Posted May 24, 2011 Share Posted May 24, 2011 Are you sure it's not in the template files?? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted May 24, 2011 Author Share Posted May 24, 2011 In template in can only see this {if $customfields} <h3>{$LANG.orderadditionalrequiredinfo}</h3> <p>{$LANG.cartcustomfieldsdesc}</p> <div class="cartbox"> {foreach key=num item=customfield from=$customfields} {$customfield.name}: {$customfield.input} {$customfield.description}<br /> {/foreach} </div> {/if} I don't know if it's important but custom fields are with "width:75%" even in admin area 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted May 24, 2011 Share Posted May 24, 2011 You can change it like this {if $customfields} <h3>{$LANG.orderadditionalrequiredinfo}</h3> <p>{$LANG.cartcustomfieldsdesc}</p> <div class="cartbox"> {foreach key=num item=customfield from=$customfields} {$customfield.name}: {$customfield.input|replace:"width:75%":"width:75px"} {$customfield.description}<br /> {/foreach} </div> {/if} Obvoiusly change the value to suit your needs. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted May 25, 2011 Author Share Posted May 25, 2011 Thank you 0 Quote Link to comment Share on other sites More sharing options...
pinkaboo202 Posted November 15, 2011 Share Posted November 15, 2011 Thanks! Just the answer I was looking for. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.