The Events Calendar gives you the option to set up a cost for each event, define a currency symbol, and choose the position of the symbol (whether it should be before or after the cost). This works nicely in most cases, especially when using currency symbols like $ or €.

However, if you want to use the currency abbreviation it will look a bit weird as there is no space between the cost and the symbol. So it will look like 100EUR, which, let’s admit, is not the nicest.

There are two ways to solve this.

You can enter the currency symbol including a space (marked with an underscore for legibility): _EUR or EUR_ into the appropriate field.

Event Cost field in the Classic Editor
Event Cost field in the Classic Editor
Event Cost field in the Block Editor
Event Cost field in the Block Editor

You can also add a default currency symbol and default currency code right in the settings under Events > Settings > Display > Currency Settings.

Currency options under Events Settings > General.

Or you can use one of the following snippets depending on whether you want the currency symbol before or after the cost. Just copy the snippet into a custom plugin or to your child theme’s functions.php file.

If the currency symbol is before the cost:

function tec_add_space_before_cost( $cost, $post_id ) {
	return ' ' . $cost;
}

add_filter( 'tribe_currency_cost', 'tec_add_space_before_cost', 10, 2 );

If the currency symbol is after the cost:

function tec_add_space_after_cost( $cost, $post_id ) {
	return $cost . ' ';
}

add_filter( 'tribe_currency_cost', 'tec_add_space_after_cost', 10, 2 );