• Is there any proper way to remove thousand separator in pages and posts numbers across the website? The main idea is to remove thousand separator at least in page numbers in pagination.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can use the following code in the Child theme’s functions.php file or in a Code Snippet plugin.

    function remove_thousand_separator_pagination($output) {
    $output = str_replace(',', '', $output);
    return $output;
    }

    add_filter('paginate_links', 'remove_thousand_separator_pagination');

    Give it a try, and let me know how that goes!

    Thread Starter yarr2

    (@yarr2)

    Actually I think this is not what I’m looking for. It would be much better to find a global setting related to number format or localization settings, since formats are taken from locale configuration.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.