Jump to content

Custom Country Field CSS


mushmoosh

Recommended Posts

How do you apply styling through CSS for a custom field? Specifically, I am trying to apply a CSS class to the custom country field dropdown list.

 

Any guidance will be appreciated.

 

Thank you!

 

On a side note: I have almost finished integrating everything and WHMCS is absolutely wonderful. Detail review on the way once its live for a few months. So far, it has been such a positive experience.

Link to comment
Share on other sites

The following code will change all your drop down lists to be the same,

 

select {
color : #000;
background-color : #000;
border : 1px solid #fff;
font-family : Verdana, "Trebuchet MS", "Lucida Grande", Helvetica, sans-serif;
font-size : 1.1em;
font-weight : normal;
padding : 0;
}

 

if you are trying to change just 1 specific drop down will take more work, such as adding that custom field directly in the tpl file.

 

{if $customfields}<tr><td class="fieldarea"><br /></td></tr>{/if}
{foreach key=num item=customfield from=$customfields}
<tr><td class="fieldarea">{$customfield.name}</td><td>{$customfield.input} {$customfield.required}</td></tr>
{/foreach}

 

If you are only using 1 custom field you can change the class="fieldarea" to whatever you want if you are using more than 1 custom field and want different classes for each you would need to call the custom fields seperately instead of using the foreach or use an if/else to change just that 1 custom field class.... Hope this gets you in the right direction.

Link to comment
Share on other sites

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