Re: Product Title - How to make it italic?
Hi All,
Another way of doing... just incase anyone prefers this approach (but the fix mentioned above will work too).
I do Italics a different method than is used above.... for Italics I just use '<em>' to open and '</em>' to close.
Using this there is no need to change the code within X-Cart at all (essentially the <em> script for php & smarty, is the same thing as using <i> in html)
So for example 'Rosa gallica Complicata' would be '<em>Rosa gallica</em> Complicata'
NOTE: This only Works if you do either a CSV import for the Product description OR you do the editing directly to your SQL table inside something like PHP MyAdmin (it does not work if you try to enter this into the field in X-Cart Admin product description field... this is as X-Cart parses / pass via a script on Save and doing this they remove the <em> etc.).
However, If you want to type directly into X-Cart Admin, there is another way.
i.e. '<span style="font-style: italic;">Rosa gallica</span>Complicata'
But as you can see, you need to type much more text (but still no need to change the code in the tables for this to work)... however, if you use X-Cart Admin to enter the product descriptions, the fix above is perhaps an easier way (as code used to create italics within the product description is shorter).
Personally I think the upload / import via CSV (and using <em>xxx</em>) is another feasible alternative, if you need to mix normal fonts with italic fonts.
Hope comments are useful - cheers, Asiaplay.
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
|