How to change the font size in WordPress using HTML

Sean Doyle

Sean Doyle is an engineer from Los Angeles, California. Sean's primary focuses include Internet Security, Web Spam, and Online Marketing.

19 Responses

  1. jitendra says:

    Many thanks to you. Thanks for the post. I agree and I got your point. But I want to know more… I want to make the bigger size of some special word in a sentence without any plugin. Special words in a sentence. eg. we are doing in MS word. Can it possible? Hope your answer.
    All the best

  2. Emily Brown says:

    I have used it and its really working, thanks a lot for sharing a simple and easily understandable blog. It is very helpful for all.

  3. Rachel Recherché says:

    Is there any way you can set this as a default setting for headings?

    Right now, my heading 1 is larger than my page title. When I use the “smaller” shortcode, it works for making H1 smaller than the title, but it also makes H1 the same size as H2, and I want them to be consistently decreasing in size, without having to go back and add the short code in for each heading in each post.

    Is there a simple way to change the default wordpress setting for the heading sizes? Thanks!

  4. Stefanie says:

    Thank you so much for this! This is so useful and I have been looking for a clever solution like this since a long time 🙂

  5. Paul says:

    but what font size is small, large or extra Large ?

    are they 12, 14 and 22 or some other combination ?



  6. Jared says:

    Thanks!! I love when people do this. There are far too many posts out there that just affiliate market plug-ins, even for simply changing the text. I’ve bookmarked your post for reference. Thanks.

  7. Anna says:

    You are a lifesaver! I’ve been so frustrated trying to switch between font sizes in my WordPress post and not being able to use the simple code. After some research I found your article and it works perfectly. Thank you!

  8. Stefanie says:

    Thank you. This was easy to do and it worked

  9. S B says:

    Thanks! But how do you als change the line-height?
    doesn’t work… Thanks in advance.

  10. Al says:

    Thank you for taking the time to post this info, it help tremendously

  11. Rex says:

    very helpful – thank you!

  12. Mark says:

    Many thanks, I appreciate the time taken. I agree, much cleaner than using some ‘black box’ plug-in.

    All the best,


  13. Anonymous says:


  14. Daria says:

    Thank you for this really useful article that helped me solve my issue. I am a big fan of simple solutions and this was one of them! 🙂

  1. January 9, 2018

    […] This is what I found. […]

  2. January 17, 2018

    […] < span style=”font-size: ______;” > & < /span> (the _____ are words like: large, x-large, small, x-small) […]

Leave a Reply

Your email address will not be published.