Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Claudio Sanches

    (@claudiosanches)

    Use this in your theme functions.php:

    function custom_social_count_plus_number_format( $number ) {
    	return number_format( $number, 0, '', '.' );
    }
    
    add_filter( 'social_count_plus_number_format', 'custom_social_count_plus_number_format' );
    
    Thread Starter MZBS

    (@mzbs)

    Hello,

    I don’t see any change adding those lines on functions.php.

    I need to change anything else?

    Thank you!

    Plugin Author Claudio Sanches

    (@claudiosanches)

    Only this and will have to fix the display of the widget.
    However if you are trying to do this with something else, you will have to implement the function in it too.

    Thread Starter MZBS

    (@mzbs)

    No,

    I am just using this <?php echo get_scp_twitter(); ?> etc in my sidebar and in the footer to get plain text of my fans in social networks and I want to see the decimal separation in those numbers.

    But nothing changes with the function in the functions.php

    Thank you!

    Plugin Author Claudio Sanches

    (@claudiosanches)

    You can use it like:

    <?php echo number_format( get_scp_twitter(), 0, '', '.' ); ?>
    
    Thread Starter MZBS

    (@mzbs)

    Great!

    That is working perfectly for me.

    Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘See numbers with decimal separator’ is closed to new replies.