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)
-   -   product txt size (https://forum.x-cart.com/showthread.php?t=22103)

subzero 05-27-2006 02:27 PM

product txt size
 
how do you change the size of the txt in the products ive tried changing the .css file to no avail :/

thanx

balinor 05-27-2006 02:40 PM

It defaults to the overall site text. There is an empty span tag in product.tpl, if you fill that in with a class you can adjust it independently.

subzero 05-27-2006 02:43 PM

ok so i need to add some code in products.tpl can you explain alittle more :)

balinor 05-27-2006 02:50 PM

Replace this:

Code:

<SPAN class=>
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}
</SPAN>


with this:

Code:

<SPAN class="description">
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}
</SPAN>


now go into skin1.css, and add this:

.description {font-size: 12px;}

Replace 12px with whatever size you want the description text to appear. If it doesn't work, try replacing the span tag with a div tag.

subzero 05-27-2006 03:01 PM

ill check it out thanx :)

subzero 05-29-2006 01:04 PM

no luck m8 cant find the string in the products.tpl :(

balinor 05-29-2006 01:56 PM

product.tpl, not products.tpl

candleshopcreations 08-22-2006 08:21 AM

Re: product txt size
 
well, i hope i'm not repeating a question, but i cannot get the above fix to work, could someone check my code?
this is from my skin.css file

}
.ProductDetailsTitle {
COLOR: #000099; FONT-WEIGHT: bold; FONT-SIZE: 12px;
}
.ProductDetails {
COLOR: #660099;
}
.description {font-size: 12px;}
.ProductPriceTitle {
COLOR: #000000; FONT-WEIGHT: bold; FONT-SIZE: 12px;
}
.ProductPriceConverting {
COLOR: #000000; FONT-WEIGHT: bold; FONT-SIZE: 12px;
}

and this is from product.tpl

</TD>
<TD valign="top">
<SPAN class="description">
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}
</SPAN>
<P>
<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<TR><TD colspan="2"><B><FONT class="ProductDetailsTitle">{$lng.lbl_details}</FONT></B></TD></TR>

any suggestions? thank you!

Realsecurity 09-25-2007 01:09 PM

Re: product txt size
 
Did the above mentioned and its changed standard text font to whatever size is specified in the .description in css, however whats needed is to REMOVE all styling so i can add a html template here in the description box with its OWN styles font size etc without xcart interfering with my settings. Is this possible,

any more help on this appreciated.


V4.1.8

Realsecurity 09-27-2007 04:24 AM

Re: product txt size
 
Although a solution not found through xcart have had to add lines of css code into each template just to get each product to look how i want! shouldnt have to do that as css style sheets are meant to create better layout pages but xcart decides what goes where, there must be a way to prevent it but for now will have to do it the hard way!


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

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