X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add class to States select box on Contact page (https://forum.x-cart.com/showthread.php?t=38895)

wayfarer 04-07-2008 06:56 PM

Add class to States select box on Contact page
 
Hi there,

I have been making style changes to my contact form, just to add some background colour and font style to the form fields and select boxes, but changing the class for the States select box has me stumped. I modified the states.tpl file like this...

Code:

{* $Id: states.tpl,v 1.13.2.3 2007/09/03 06:15:27 max Exp $ *}
{if $states ne ""}
<select class="myselectboxclassinskin1css" name="{$name}" id="{$name|replace:"[":"_"|replace:"]":""}" {$style}>
{if $required eq "N"}
        <option value="">[{$lng.lbl_please_select_one}]</option>
{/if}
        <option value="{if $value_for_other ne "no"}Other{/if}"{if $default eq "Other"} selected="selected"{/if}>{$lng.lbl_other}:</option>
{section name=state_idx loop=$states}
{if $config.General.default_country eq $states[state_idx].country_code || $country_name eq '' || $default_fields.$country_name.avail eq 'Y'}
        <option value="{$states[state_idx].state_code|escape}"{if $default eq $states[state_idx].state_code && (!$default_country || $default_country eq $states[state_idx].country_code)} selected="selected"{/if}>{$states[state_idx].country_code}: {$states[state_idx].state|amp}</option>
{/if}
{/section}
</select>
{else}
<input type="text"{if $name ne ''} id="{$name|replace:"[":"_"|replace:"]":""}"{/if} size="32" maxlength="65" name="{$name}" value="{$default|escape}" />
{/if}


...but the states drop down isn't obeying. Is there somewhere else I need to look to make the style change or have I missed something here? Any help would be much appreciated...

Yurij 04-08-2008 01:11 AM

Re: Add class to States select box on Contact page
 
You did clean up cache (http://youshop.com/cleanup.php)?
Maybe it works:)

PS. You are changing the file - "skin1_admin.css" ?

wayfarer 04-08-2008 02:24 AM

Re: Add class to States select box on Contact page
 
Thanks Yurij, I had a realisation about the skin.css file - and that I can modify global settings for INPUT, SELECT, TEXT AREA etc there... Because I had a few options boxes and fields that I specifically wanted to control the size of, but didn't want to apply those restrictions to everything, I think I overlooked the obvious...

Thanks...


All times are GMT -8. The time now is 06:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.