X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   How to Style "Trademark" symbol in product title (https://forum.x-cart.com/showthread.php?t=77240)

galoadm 10-07-2019 07:18 AM

How to Style "Trademark" symbol in product title
 
We have several manufacturers that require us to place "Registered" and "Trademark" symbols next to their names, but when I place a span class in the title or Product name, X-Cart strips the span tag from the code when saved. This results in the symbols being as large as the other text which in the size of an H1 makes them very distracting verses small symbols aligned to the top.



Title example:
+1 Magazine Extension for Ruger® LC9®, LC9s®, and EC9s® Pistols






Does anyone know how to properly style these special html characters in X-Cart 5.4? Or know how to keep X-Cart from stripping the span tags in the product name and titles?

cflsystems 10-07-2019 07:58 AM

Re: How to Style "Trademark" symbol in product title
 
I would avoid using html markup in title. Also it is probably best if you do not use special symbols as well but their html code - ® for example (not sure if XC automatically does this when you save product)



You can then decorate either the model or the view class showing the title and do a simple search/replace - find and replace &reg; with <span class="your-class">&reg;</span> - and then you can style it anyway you want

galoadm 10-07-2019 10:32 AM

Re: How to Style "Trademark" symbol in product title
 
Thank you for the reply Steve.



Unfortunately we are being required by Ruger to place the Registered Trademark where ever we use their Brand name or model name, or they will initiate legal action against us.


Yes it does remove the span and leave the &reg; automatically. I will do some research on decorating the model or view class. I am not familiar with that process.


All times are GMT -8. The time now is 11:13 AM.

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