letter size is px instead of pnt

After last update the presets at text field are px instead of pnt. Is that right? We would like to have it at the old way.

Hey Bredewijn,

Try using the function below and see if it works!

// Customize mce editor font sizes
if ( ! function_exists( 'wpex_mce_text_sizes' ) ) {
  function wpex_mce_text_sizes( $initArray ){
    $initArray['fontsize_formats'] = "9px 10px 12px 13px 14px 16px 18px 21px 24px 28px 32px 36px";
    return $initArray;
  }
}
add_filter( 'tiny_mce_before_init', 'wpex_mce_text_sizes' );

Ben

[Content Hidden]

Hey Bredewijn,

Using the function above, you can change the default sizing from PX to PT. You can just place it on your functions.php file preferably in a child theme.

Ben

Hey Ben,

Where can i find the functions.php file?

Hey Bredewijn,

That would be from your theme, Appearance > Editor > Functions or functions.php. And it needs to be a child theme. You can check the link below for more info regarding child themes.
https://codex.wordpress.org/Child_Themes

If you’re using the BB theme, we’ve already provided a child theme with its own functions.php file.

Ben

Hey Ben,

I just copied the function at functions.php
There is no difference at all.

Hey Bredewijn,

Do you mind sharing temp admin access to your site so I can check? You can just post it here using the private reply option below.

Ben

[Content Hidden]

Hey Bredewijn,

Can you disable all the other plugins except BB and see if that fixes it?

Ben

Hey Ben,

I just did, no change.

Hey Bredewijn,

Would it be fine if we’re to play around with the site? Change themes, disable the plugins and that sort of stuff?

Ben

[Content Hidden]

Hey Bredewijn,

You should be good to go! :slight_smile:

Ben

Hey Ben,

Thanks a lot!

No worries! Enjoy BB! :slight_smile:

Ben

[Content Hidden]

Hey Bredewijn,

I installed an additional plugin called My Custom Functions and placed it there. That way it won’t get overridden by updates.

Ben

Hey Ben,

Thanks for the quick response!

No worries! Enjoy BB! :slight_smile:

Ben