Support

Home Forums Event Espresso Premium Hide currency sitewide – e.g. remove (USD) sitewide

Hide currency sitewide – e.g. remove (USD) sitewide

Posted: August 24, 2016 at 3:42 pm

Viewing 1 reply thread


Adam Bowie

August 24, 2016 at 3:42 pm

Saw one thread on this stating this method:
You could adjust the pricing to show without the A using an str_replace:
http://wp-mix.com/replace-all-instances-string-wordpress/

Is removing via CSS a better or simpler method, or as of this date, is the above method the recommended one?


Tony

  • Support Staff

August 25, 2016 at 2:00 am

Hi there,

Using CSS is not really better or worse, it’s another option people can use when they are not comfortable adding code to their site. One of the advantages of using CSS is if you use something like the My Custom CSS or Reaktiv CSS Builder plugins you can add the CSS from within your dashboard and if you make a typo you don’t bring down the site. Make the same mistake with PHP and you’ll see a whitescreen and need FTP access to fix it.

However we added a filter to remove the currency code from EE4 before its output at all which would now be the better option to use.

If you add something like this:

add_filter( 'FHEE__EEH_Template__format_currency__display_code', '__return_false' );

To either your themes functions.php (preferably a child theme) or a Custom Functions Plugin it should remove the currency code site wide for you.

Viewing 1 reply thread

The support post ‘Hide currency sitewide – e.g. remove (USD) sitewide’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso