Jump to content

All custom fileds are huge


Kian

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated