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)
-   -   change upper to lower case (https://forum.x-cart.com/showthread.php?t=28716)

crazyoval 02-09-2007 06:34 AM

change upper to lower case
 
Hi all, I cant find my old posting on this. Im trying to find how I can change my template skin from showing upper case automatically to lower case as standard but with the first letter as uppercase.

Can anyone help please?

thank you :O)

dalmuti 02-09-2007 06:41 AM

Re: change upper to lower case
 
Check the skin1.css:

Quote:

Text Transform Case
Case allows you to change how a block of text will appear. This is an easy way to override the formatting of a block of text that has already been typed and placed in the document.

Values include: capitalize, uppercase, lowercase, none

The values of this property have the following meanings:
capitalize: first character of each word is uppercase
uppercase: all characters are uppercase
lowercase: all characters are lowercase
none: element ignores parent element value


<style>
P { text-transform: uppercase }
</style>

<P>This is some text</P>

crazyoval 02-09-2007 07:42 AM

Re: change upper to lower case
 
thanks dalmuti, Im confused if this is to go into the css file as the format is different
eg:

Category page
*/
.SubcatTitle { padding-left: 5px; width: 95%; text-align: left; }
.SubcatInfo { white-space: nowrap; color: #000000; text-align: right; }
/*


I would guess I would put it in like this:

*/
.SubcatTitle { padding-left: 5px; width: 95%; text-align: left; }
<style>
P { text-transform: uppercase }
</style>
.SubcatInfo { white-space: nowrap; color: #000000; text-align: right; }
/*

but Im not sure if that looks correct, the syntax does not look right..

lewaff 06-30-2007 08:26 AM

Re: change upper to lower case
 
I am new to the Xcart
Can someone tell me how to change my catorgeries from upper case to capital to the first letter
and where i would do it
Thanks in advance
Gave up with CCP6 and trying Xcart out

crazyoval 06-30-2007 08:50 AM

Re: change upper to lower case
 
I gave up on this, too fiddly for me so I got 7dana to do it and it was done in a flash.

PhilJ 06-30-2007 09:26 AM

Re: change upper to lower case
 
Code:

{$c.category|capitalize:true}

http://smarty.php.net/manual/en/language.modifiers.php#language.modifier.capitaliz e

lewaff 06-30-2007 10:00 AM

Re: change upper to lower case
 
Thanks but where does this code go
lewis

PhilJ 06-30-2007 10:02 AM

Re: change upper to lower case
 
skin1/customer/categories.tpl

lewaff 06-30-2007 10:04 AM

Re: change upper to lower case
 
Thanks That was quick
:D/

lewaff 06-30-2007 10:31 AM

Re: change upper to lower case
 
hello PhilJ
It does not seem to work
I have tried it in a few places
From this:-
<tr class="CategoriesListRow">
<td valign="top" class="CategoriesListImg"><img src="{$ImagesDir}/custom/blue_arr.gif" width="10" height="14" alt="" />&nbsp;</td>
<td width="100%" class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></td>
</tr>
<tr>

To This :-



<tr class="CategoriesListRow">
<td valign="top" class="CategoriesListImg"><img src="{$ImagesDir}/custom/blue_arr.gif" width="10" height="14" alt="" />&nbsp;</td>
<td width="100%" class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category|capitalize:true }</a></td>
</tr>
Still all in capitals i only want the first letter caps


All times are GMT -8. The time now is 02:18 PM.

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