How do I move the currency symbol from the right to the left for Gravity Forms?
April 11th, 2023: Simplified snippet to be more future-proof.
October 2nd, 2015: Fixed typo. Parenthesis replaced with curly brace.
Install the snippet
- Copy and paste the entire snippet into your theme’s functions.php file or install via a code snippet management plugin like Code Snippets.
Configure the snippet
- This snippet moves the Euro’s currency symbol to the left by moving the symbol’s HTML entity from the “symbol_right” property to the “symbol_left” property.
- If you’d like to apply this to a different currency you will need to change the
'EUR'on lines 7 and 8 to the appropriate abbreviation for your desired currency. See the tip below for an easy way to find out the correct abbreviation.
What else do you need to do with Gravity Forms currencies? Let us know in the comments!