Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   How to insert blank space between currency sign and price (/showthread.php?t=4783)

ayorofrance July 10th, 2011 08:05 AM

How to insert blank space between currency sign and price
 
Hello,

I want to show my price like this: 55

I have changed the code to this:
Code:

<div class="prc"><strong>[product.price]&nbsp;[product.currency mode="sign"]</strong></div>
However when I save the &nbsp; is somehow filtered out. Simply adding a space between the two variables does not work eiter...

What's the easiest way to insert a blank between the two?

Thanks,

Anders

Eric July 10th, 2011 08:08 AM

The best way is via CSS. Just wrap the currency symbol in a <span> tag and then style the span tag.

HTML Code:

<div class="prc"><strong>[product.price] <span>[product.currency mode="sign"]</span></strong></div>
Code:

.prc strong span {padding-left: 10px;}
Eric

ayorofrance July 10th, 2011 08:46 AM

Works a treat!

Thanks!!!

thk1976 June 4th, 2012 05:05 PM

Do i go to the custom css in store menu, to add the code? tried, but doesent seem to work.

Thomas

Eric June 4th, 2012 05:34 PM

Hi
Quote:

Originally Posted by thk1976 (Post 32366)
Do i go to the custom css in store menu, to add the code? tried, but doesent seem to work.

Yes, you need to add the new CSS code to your Custom CSS in the Factory but only after you have made the code changes to your views.

Eric


All times are GMT -5. The time now is 12:55 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.