Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to Style "Trademark" symbol in product title
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-07-2019, 07:18 AM
 
galoadm galoadm is offline
 

Member
  
Join Date: Dec 2013
Posts: 19
 

Default 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?
__________________
X-Cart Gold 4.6.0
X-Cart Mobile
X-Product Notifications
Reply With Quote
  #2  
Old 10-07-2019, 07:58 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,584
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 10-07-2019, 10:32 AM
 
galoadm galoadm is offline
 

Member
  
Join Date: Dec 2013
Posts: 19
 

Default 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.
__________________
X-Cart Gold 4.6.0
X-Cart Mobile
X-Product Notifications
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:31 AM.

   

 
X-Cart forums © 2001-2018