How to Highlight Text in WordPress

Written by WordPress Expert

October 5, 2024
How to Highlight Text in WordPress

You probably have at one time used a highlighter marker to highlight text in a book. However, did you know you can kinda do that in WordPress? In this article, you’ll learn how to highlight text in WordPress.

Why Would You Need To Highlight Text In WordPress?


Highlighting text in WordPress can serve various purposes depending on your needs. Here are ten reasons why you might want to do it:

  1. Emphasize Key Points

  2. Improve Readability

  3. Create Visual Hierarchy

  4. Draw Attention to Calls-to-Action

  5. Highlight Quotes or Testimonials

  6. Showcase Important Information in Tutorials or Guides

  7. Differentiate Sections or Categories

  8. Enhance SEO Optimization

  9. Support Accessibility

  10. Differentiate Original Content

Emphasize Key Points

Highlighting can draw attention to important parts of your content, making sure your readers notice the crucial information.

Improve Readability

By highlighting sections of text, you can break up dense blocks of content and make it easier for readers to scan and understand your posts.

Create Visual Hierarchy

Highlighting helps establish a visual hierarchy, guiding readers through your content in a logical and engaging manner.

Draw Attention to Calls-to-Action

If you want your audience to take a specific action, such as signing up for a newsletter or purchasing a product, highlighting can make these calls-to-action stand out.

Highlight Quotes or Testimonials

Important quotes or testimonials can be emphasized to give them more prominence and enhance their impact.

Showcase Important Information in Tutorials or Guides

In instructional content, highlighting can help readers quickly locate critical steps or tips.

Differentiate Sections or Categories

If you have multiple categories or sections within a post, highlighting can help differentiate them and make navigation easier for your readers.

Enhance SEO Optimization

Highlighting keywords or key phrases within your content can help search engines understand the focus of your page, potentially improving your SEO ranking. It also helps readers quickly identify relevant terms related to their search queries.

Support Accessibility

Highlighting important text can aid users with cognitive disabilities or those using screen readers, helping them navigate content more effectively by drawing attention to crucial information.

Differentiate Original Content

If your post includes a mix of original content and quoted material, highlighting can help distinguish your thoughts from external sources, ensuring clarity and avoiding confusion for readers.

90%

💸 90% OFF YOUR FIRST MONTH WITH ALL VERPEX HOSTING PLANS FOR WORDPRESS

with the discount code

MOVEME

Grab the Discount

How to Highlight Text in WordPress


The best way to highlight text in WordPress using the Gutenberg block editor is to use the steps below:

  1. Log in to your WordPress dashboard

  2. Open the post or page

  3. Select the text paragraph block

  4. Write your text

  5. Use the mouse to select the text you wish to highlight

  6. Click on the block editor’s down editor for more options

  7. Select highlight

  8. Choose colors for text

  9. Choose colors for background

  10. Save or update post

Log in to your WordPress dashboard

Log into your WordPress admin area and navigate to the posts or pages area.

Open the post or page

If you have an existing post or page that you’ve created and want to highlight text, open one of those. You can also play around with highlighting text in a draft post or page.

Select the text paragraph block

Select the text paragraph block

The paragraph text block includes an option to perform highlighting.

Write your text

Type the text you want to display. You can use the highlight option for single words, or full sentences, or even full paragraphs.

Use the mouse to select the text you wish to highlight

You’ll need to select the text you want to highlight by using your computer mouse or options for highlighting if you’re using a laptop and your own hands.

Click on the block editor’s down editor for more options

Click on the block editor’s down editor

To get the WordPress highlighting feature, you’ll see an arrow that points downward. Click on that and then the second option is Highlight.

Select highlight

Click on Highlight and some other options will show up.

Choose colors for text

Choose colors for text

In some cases, your theme may have some built in defaults, but it’s important to choose whatever color you’d like. You can have a different color for the text as well as the background, which is “highlighting”.

Choose colors for background

Choose colors for background

You can choose custom colors for your word’s text or background by clicking on the box above the theme default’s colors. From there, you can use the color wheel to choose more colors than what your theme uses.

Save or update post

Click Update or Publish to save your changes.

Highlighting text using Custom CSS and HTML


If you want to add more custom colors using code instead of the built-in color wheel in the block editor, you can go to the Customizer section, under Appearance, in your WordPress dashboard.

From there, you should be able to find an option for Custom CSS.

In the Custom CSS option, you can add a custom CSS to style highlighted text.

  • Click on "Additional CSS" and add custom CSS to style highlighted text. For example:
     .highlighted-text {
         background-color: yellow; /* or any color you prefer */
         color: black;
     }

Once you’ve added the custom CSS, you will need to apply a class to your text that you want to highlight. You’ll want to edit your post or page and switch to the HTML or Code Editor view.

Wrap the text you want to highlight in a tag with the class you defined:

<span class="highlighted-text">This is the highlighted text.</span>

As a note, you may find that this bonus option would be best if you’re using the Classic Editor plugin, which uses the older WordPress content editor. This may be more tedious, as you’ll have to add the HTML around every word or group of words, so only use this if there’s an issue with your block editor not showing highlighted text when you publish the changes you’ve done.

20%

💰 EXTRA 20% OFF ALL VERPEX HOSTING PLANS FOR WORDPRESS

with the discount code

AWESOME

Grab the Discount

In Summary


Do you have a need to highlight text in WordPress? Hopefully this simple tutorial will help you achieve highlighting text, in order to achieve whatever goal you want it to, whether for a call-to-action, web accessibility reasons, or anything else. Enjoy!

Frequently Asked Questions

Who should use hosting for WordPress?

First of all - people using CMS WordPress

Is WordPress free for students?

WordPress is free. Besides buying a domain, the only initial cost is for hosting.

Are WordPress-free themes safe?

People often think that free themes have low quality. However, free WordPress themes actually have high quality and are free to use.

Can WordPress be used for eCommerce?

WordPress offers many different ways to build an eCommerce online store for all types of products and markets. Almost 40 percent of all online shops are powered by WooCommerce, a WordPress eCommerce plugin.

Discount

💰50% OFF YOUR FIRST MONTH WITH ALL VERPEX MANAGED HOSTING PLANS FOR WORDPRESS

with the discount code

SERVERS-SALE

SAVE NOW
Jivo Live Chat