Change thousands separator for sbs_cpt_count

[ad_1]

Hi,

I love your plugin, which is one of its kind!

I’m trying to change the 000 separator for the sbs_cpt_count shortcode (I need to display the number of a custom post type), to a dot for the european number format, and no luck so far.
I read the documentation and relevant support posts, but it seems the “number_format” switch works only with sbs_posts. I also tried the following script, but it doesn’t work either, which is strange because I think I got the class name right :

    <script>
 	var arr = document.getElementsByClassName("sbs-count-cpt");
	for(i = 0; i < arr.length; i++){
    	arr[i].innerHTML = arr[i].innerHTML.replace(",",".");
	}
    </script>

Could you help me solve this please ?

Thanks!

RP

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer