How to Change Font Size in WordPress

Posted on Monday, April 21st, 2014 No Comments


how to change the font size in wordpress

The WordPress editor doesn’t include a method for changing the font size of specific text. It lets you insert Headings of different sizes, but those should only be used for actual headings, not regular text.

To change the font size of one word, sentence, or paragraph, use the <span> tag to specify a size.

1. Click the Text tab at the top of your post.

visual-text-tabs

2. Find the text that you want to change. As an example, we’ll use “Changing the font size in WordPress” and make it 14pt.

3. Add <span style="font-size: 14pt;"> before the text, and </span> after.

4. So you end up with <span style="font-size: 14pt;">Changing the font size in WordPress</span>

5. Go back to the Visual editor to see the font size in action.

Font Size Options

The font size can be specified in pt, px, or em.

This text is 10 pt.

<span style="font-size: 10pt;">This text is 10 pt.</span>

This text is 10 px.

<span style="font-size: 10px;">This text is 10 px.</span>

This text is 2 em.

<span style="font-size: 2em;">This text is 2 em</span>




Posted in WordPress. Tagged with: , ,