Formatting with

The pages you are linking use two different characters, one is the &mdash and the other I don’t know the name, it does not translates into an Html entity… Original: 2——-2——-7——-7——-| <– Mixed characters Using the character that works: 2—2—7—7—| <– This one is not &mdash. You may consider using a shortcode to encapsulate the … Read more

Line breaks not showing up properly

Presentation layer is best handled by CSS. In this case that would probably be margin-bottom rule for your heading. Markup with <br /> is usually unreliable. WP mostly relies on <p></p> tags for paragraphs and not line breaks.

Add dollar sign and commas to a number?

To format number, you can use the function number_format_i18n (it’s not documented now, but you can see its source here). Its work is format the number based on the language. You might want to look at number_format (PHP built_in function, and is used by number_format_i18n) to have more control to decimal point and thousand separator. … Read more

How to change text size of Gutenberg editor

If you came here, like me, looking for how to adjust the available text size options within Gutenberg, you can add this code to your theme’s functions.php file (you can add as many options as you like): add_theme_support( ‘editor-font-sizes’, array( array( ‘name’ => __( ‘Normal’, ‘your-theme-text-domain’ ), ‘shortName’ => __( ‘N’, ‘your-theme-text-domain’ ), ‘size’ => … Read more