| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Can't figure out how to change font size? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I have read thread after thread trying to figure out how to change the default text size on my product pages. The suggestions that are being given don't seem to be working for my site, they might be for older versions of x-cart. Can someone please look at my code and tell me where I need to put the changes. Here is my
Product.tpl Code:
__________________
X-Cart Gold version 4.1.9 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Hi there,
From the code you have given us, you're looking for anything that looks like this (the FONT tag)... <font class="whatever_classid_is_relevant"> It's best to go into your skin1/skin1.css file to edit these, so locate the "whatever_classid_is_relevant" with a search inside the file. And when you're more advanced with CSS, in future, to remove these altogether. When you have located the relevant class within the css file, replace/add accordingly within the brackets statement. For instance, here are some examples in changing the font size (disregard/ignore the comments and its contents) ... FONT-SIZE: 12pt; /* in point size */ FONT-SIZE: 1em; /* in em's */ FONT-SIZE: 13px; /* in pixels */ Compare existing code within the css file and also google CSS for more tips. Remember to back up. Regards, Doms
__________________
Doms kube v4.1.9 |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() I reread that and I don't think I was clear enough.
For clarity sake as an example: locate the skin1/skin1.css file. and locate ProductDetailsTitle within the file (this one is a little tricky as it affects a few titles as well as the price within the product item page but it will give you a gist) it will read something like... .ProductDetailsTitle { COLOR: #FF3300; FONT-WEIGHT: bold; FONT-SIZE: 12px; /* <- change this to 22px to get a feel for its effect, this means 22 pixels big */ } Hope that's a little better for understanding. Regards, Doms
__________________
Doms kube v4.1.9 |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() I am sorry but I looked at my css and and changed the font size where it says product description and I still don't see anything. Here is my css I change the font size to 14 and still nothing, it is almost like it doesn't control it at all. Here is the snippit of the code that I feel pertains to the description:
Code:
The hightlighted is where I changed the font size. ut there was no change on the product pages.
__________________
X-Cart Gold version 4.1.9 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Hi Divine,
Have you got the right product.tpl? skin1/customer/main/product.tpl (The product item's page) rather than skin1/main/product.tpl I am a little unsure about skin1/main/product.tpl's effects (by the looks of mine it seems to be an admin file - not sure why now). Also, in my browser, you have the wrong CSS class highlighted it should be ProductDetailsTitle and not ProductDetails for testing with. Your original snippet doesn't contain the ProductDetails class but it does have the ProductDetailsTitle class. Also note that the {$product.descr} from your snippet above is surrounded by the class="Text". (but again mine looks like to be an admin file) Hope this helps. Doms.
__________________
Doms kube v4.1.9 |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Kube-
Wow, thanks so much for your help! I actually got it to work, but you'll never beleve this, in the CSS my product descriptions didn't have anything to do with the product detailsatall, this is what controled my product descriptions: Code:
I never would have guessed it. You are so sweet to help me, thank you again!
__________________
X-Cart Gold version 4.1.9 |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() Hi again Divine,
Yes, I was going to mention this, as a test, but I wasn't sure if you wanted to change more-or-less all the font sizes within the cart, as sometimes it can have undesirable results. Glad to help. Regards, Doms
__________________
Doms kube v4.1.9 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|