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

PhilJ 06-30-2007 10:50 AM

Re: change upper to lower case
 
Strange, it should work, try clearing your template cache (run cleanup.php) then refresh.

lewaff 06-30-2007 11:13 AM

Re: change upper to lower case
 
Sorry But not that advanced
How do i run cleanup.php
Strange, it should work, try clearing your template cache (run cleanup.php) then refresh.
Thanks again

Sorry Found how to run cleanup.php

But still no change
I have run W3C validator and the page dont validate Any Idea's and maybe to with this (help!!!)
  1. <LI class=msg_err>http://validator-test.w3.org/images/info_icons/error.png Line 561, Column 6: namespace error : Namespace prefix o on p is not defined.
    <o:p></o:p></span></h4>
    <LI class=msg_err>http://validator-test.w3.org/images/info_icons/error.png Line 565, Column 6: namespace error : Namespace prefix o on p is not defined. <o:p></o:p></span></h2>
    <LI class=msg_err>http://validator-test.w3.org/images/info_icons/error.png Line 576, Column 6: namespace error : Namespace prefix o on p is not defined. <o:p></o:p></span></h4>
  2. http://validator-test.w3.org/images/info_icons/error.png Line 580, Column 6: namespace error : Namespace prefix o on p is not defined. <o:p></o:p></b></p>

Zaja 06-30-2007 03:31 PM

Re: change upper to lower case
 
Quote:

Originally Posted by crazyoval
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)


Open skin1.css file and remove the text-transform: uppercase; property from following classes:

.VertMenuTitle
.DialogTitle
.DialogTitle2
.ProductTitle, .ProductTitle a
.categories a
.categories a:hover



You can use the :first-letter pseudo-element to create "the first letter as uppercase" effects....for example:

.VertMenuTitle:first-letter {text-transform: uppercase; font-weight: bold;}

lewaff 06-30-2007 04:00 PM

Re: change upper to lower case
 
Thanks again for your Patience
I am trying very hard but

None found in the skin1.css file

.VertMenuTitle {
BACKGROUND-COLOR: #081589;
COLOR: #FFFFFF;
FONT-WEIGHT: bold;
PADDING: 1px;
}

Tried adding

.VertMenuTitle:first-letter {text-transform: uppercase; font-weight: bold;}

Made no differance

It seems to be part of my skin 'Neon Lights'
the demo Skin put the catergories in full upper case

Really stuck now

thanks again
lewis

Zaja 06-30-2007 05:00 PM

Re: change upper to lower case
 
Lewis, I replied to crazyoval question about Natural template. I don't have any expirience related to 'Neon Lights' template, but try open skin1.css and remove the text-transform: uppercase; property from:

.CategoriesList
TD.VertMenuTitle
FONT.VertMenuTitle

lewaff 07-01-2007 12:00 AM

Re: change upper to lower case
 
Found It
Thanks for all your help it was in skin1_c.css

.CategoriesList {
FONT-SIZE: 11px;
TEXT-TRANSFORM: uppercase;
FONT-WEIGHT: bold;
LINE-HEIGHT: 16px;
}

and change it to

.CategoriesList {
FONT-SIZE: 11px;
FONT-WEIGHT: bold;
LINE-HEIGHT: 16px;
}

Now working fine
Again thanks for you help and guidence i would have never found it on my own
lewis afford
www.qualitechnic.co.uk (CCP6)
www.mobile-phone-batteries.eu/xcart/home.php (xcart - under construction)


All times are GMT -8. The time now is 10:43 AM.

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