| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Font sizes in WYSIWYG | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Running X-Cart 4.1.9 and with the template we are running the font size goes from super small to slightly larger than I would like when using the WYSIWYG editor. Like size 3 to size 4.
I would assum that is a function of a CSS sheet. Is that right? Thanks Rich
__________________
Rich McCabe Iowa Web Hosting.com Operating multiple versions of X-cart (linux) |
|||||||
#2
|
|||||||
|
|||||||
![]() View the source, see what formatting tags it is adding.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() The source shows <span style="FONT-SIZE: 14pt">This is a pre-purchase agreement. For $10.00 you get on the official first list. Be the first at your track to own one. This is the first major manufacturer 100% ready 1/8 scale kit entirely designed in the United States. Pictures are of prototype only. Slight variations may exist with mass manufacturing. See Details. </span>
In the WYSIWYG the nex size down seems to set the font to 10?? Thanks
__________________
Rich McCabe Iowa Web Hosting.com Operating multiple versions of X-cart (linux) |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Although I wouldn't recommend using the wysiwyg; a quick way around this, so that you can have your own font sizes within the wysiwyg editor, would be to change these two .js files below...
skin1/modules/HTML_Editor/editor.js skin1/modules/HTML_Editor/moz/editor.js and locate these lines of code in both of them... Code:
and change them to the size you like, for instance (these sizes below are NOT in relation to the equivalent size in pt's)... Code:
I haven't tested this thoroughly but it doesn't appear to be conflicting with anything else within the js and outputs just the same. The em's I have introduced to show that over units are possible. You could just as easily swap... else if(f.size==3)nSize="12pt"; to else if(f.size==3)nSize="11pt"; ...if needs be - for size 3 to come up as 11pt's. Hope this helps.
__________________
Doms kube v4.1.9 |
|||||||||
#5
|
|||||||
|
|||||||
![]() Thanks Doms, But if I dont want to do wysiwyg how do I bump up the default size for description field text?
__________________
Rich McCabe Iowa Web Hosting.com Operating multiple versions of X-cart (linux) |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
Within the default editor, to bump a portion of text, you could add a span and give it a style with a font size in percent. For example... <span style="font-size:120%;">text</span> However, if you meant how do you get a consistent fixed font size for the description text on all the product pages. Then... Open up skin1/customer/main/product.tpl and locate... <td>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}</td> and add a class to the TD, for example, .descrtxt... <td class="descrtxt">{if $product.fullde... Then open up skin1/skin1.css and add the new class... Code:
Still within skin1/skin1.css, locate at the top of the document the following grouped selectors (on one line) and /* comment out */ the font-size like so (whatever the font-size value is)... Code:
Then a little further down locate the following grouped selectors (on one line) and add the default font-size for the rest of the content... Code:
Hope this helps.
__________________
Doms kube v4.1.9 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|