• For some reason when using a currency field and choosing british pounds as the currency. a space is entered between the currency symbol and the amount for example:

    £ 5.00

    instead of £5.00

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey mattk1980,

    I’m testing here in a fresh WP install and I can’t replicate the issue.

    Are you using any plugins to extend the main editor functionality? Something like TinyMCE?

    Thread Starter Matt

    (@mattk1980)

    Hiya, no nothing. It’s done this on every install of pods for me.

    Matt, can u please share your site / blog where you are facing this issue? Also if you could let us know about any plugins you may be using.

    Thread Starter Matt

    (@mattk1980)

    https://www.big8gaming.com

    i’ve had various different installs, all with different plugins and it always does this.

    This has a lot of plugins going on:

    Akismet
    Version 3.1.10

    Insert PHP
    Version 1.3

    LayerSlider WP
    Version 5.6.2

    Limit Login Attempts
    Version 1.7.1

    Pods – Custom Content Types and Fields
    Version 2.6.2

    Redirection
    Version 2.4.4

    WP Print Friendly
    Version 0.6.1

    WPBakery Visual Composer
    Version 4.11.2.1

    Yoast SEO
    Version 3.1.2

    Try to disable Visual Composer… just to test. It might be a bug with this plugin

    Thread Starter Matt

    (@mattk1980)

    I think this line of code is the problem in the pods plugin:

    file: pods/classes/fields/currency.php:310 to line 317

    // Currency placement policy
    		// Single sign currencies: 100$, ?£100
    		// Multiple sign currencies: 100 Fr, Kr 100
    		$currency_gap = '';
    
    		if ( strlen( $currency_sign ) > 1 ) {
    			$currency_gap = ' ';
    		}

    If its reading the British pounds symbol as ?£ this counts as 2 characters therefore the logic is adding a gap.

    Why you aren’t seeing this problem is strange as it looks like its the coding of the plugin.

    Hey mattk1980,

    I tested the Pods plugin and I don’t see any problems. It’s very strange.

    Try to disable the plugin and create a new post/page with the £ symbol to see if it works. But the plugin uses the same default text editor from WP. So it shouldn’t be a problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘British Pounds symbol has a space after it’ is closed to new replies.