KEMBAR78
How to Add a Font Resizer in WordPress for Accessibility
Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add a Font Resizer in WordPress for Accessibility

We’ve learned that the best websites are the ones that adapt to their users, not the other way around. One of the most effective ways to do this is by adding a font resizer that lets visitors adjust text size to their comfort level.

Font accessibility benefits everyone—from users with visual impairments to people reading on different devices or in various lighting conditions.

When visitors can easily customize text size, they stay longer, read more, and are more likely to engage with your content and take action on your site.

In this guide, we’ll show you exactly how to add a font resizer to your WordPress site. We’ve tested several methods and plugins to find the most reliable options that work with any theme and won’t slow down your website.

How to add resizeable text for site visitors in WordPress

Why Is It Important to Add Resizable Text to Your Website? 🤔

If the font size is too small on your website, then people will have a hard time reading your articles and eventually abandon your site.

One easy way to improve readability is to offer visitors the option to resize the main text on your website. This allows users to adjust the text size according to their liking and spend more time on your site.

Even though you can use the browser’s built-in zoom feature by pressing the ‘CTRL and +’ keys, this increases the size of every WordPress design element on the page, not just text. This may break the website’s layout and not provide a great user experience.

That said, let’s see how you can easily add resizable text for your visitors in WordPress. You can use the quick links below to skip to a specific method:

Method 1: Add WordPress Font Resizer With Plugin and Code

One easy way to allow users to change the text size on your website is by using a WordPress accessibility font resizer plugin like Accessibility Widget.

It’s a free WordPress plugin that lets you add an option to your site’s sidebar to change the text size. The plugin is lightweight and very easy to use.

Note: The Accessibility Widget plugin is not compatible with Full Site Editing and block themes, so it will only work if you use a classic theme. You’ll know that you’re using a block theme if the theme customizer is missing on your WordPress admin.

The first thing you need to do is install and activate the Accessibility Widget plugin on your website. If you need help, please see our guide on how to install a WordPress plugin.

Upon activation, simply go to Appearance » Widget from the WordPress admin panel. Next, you can click the ‘+’ button and add the ‘Accessibility Widget’ block to your sidebar.

Add an accessibility widget block

After that, you can enter a title for the widget, like ‘Change Text Size’ or ‘Resize Text’.

Next, you need to select which HTML elements or CSS classes will be affected by the widget. The default options are body, paragraph, list items, and table cells. These options should work for most websites.

Change accessibility widget settings

The widget allows up to four resize options. The default options are 90%, 100%, 110%, and 120%. You can increase or decrease the font sizes by entering the figures in the ‘Set to these sizes’ field.

The last widget setting is controller text, and this is the text users will see. You can keep the default percentages for the text size or use a letter to show different font sizes.

Once you are done, just click the ‘Update’ button to store your widget settings.

You can now visit your website to see the widget in action. This is how the widget should appear in your website sidebar:

Change text size preview

If you feel the controller text is not noticeable, then you can change that by using CSS.

To do this, just go to your WordPress admin and select Appearance » Customize.

Opening the WordPress theme customizer for classic themes

You should now see some options to customize your classic theme.

Here, select ‘Additional CSS.’

Opening the Additional CSS tab in Theme Customizer

Now, you can add some CSS code to style the widget.

Here’s what we added:

.widget_accesstxt a {
border: 2px solid #000;
padding: 2px;
font-weight: bold;
}

This CSS will add a border around the controller text, make it bold, and add a little padding. Once you’re happy with how the widget looks, just click ‘Publish.’

For more details, please see our guide on how to add custom CSS in WordPress.

Adding additional CSS to a classic theme to style the accessibility widget

Method 2: Use WordPress Accessibility Plugin

Another easy way to let users resize the text on your website is by using WP Accessibility. This plugin lets you add a toolbar to your site to change the text size, no matter what theme you’re using.

The first thing you need to do is install and activate the WP Accessibility plugin on your website. You can see our guide on how to install a WordPress plugin if you need help.

Upon activation, simply go to the WP Accessibility page from the WordPress admin panel.

WP Accessibility Settings

In the ‘Accessibility Toolbar’ section, click the ‘Enable Accessibility toolbar’ option and select ‘Font size.’ This will add a font resizer to the toolbar.

If needed, you can also enable the Contrast and Grayscale options.

Additionally, you can change the font size of the content when the toolbar is clicked. You can also just select ‘Default size’ in the dropdown menu if you’re not sure what to choose.

Other than that, we recommend enabling the ‘Use alternate font resizing stylesheet’ option. When this option is enabled, users can easily switch between the default font sizes and a larger, more readable version of the text.

Feel free to enable other settings in the plugin.

Once done, just click the ‘Update Toolbar Settings’ button.

WP Accessibility toolbar settings

That’s it!

Here is what our font resize toolbar looks like on the front end:

Gif of how the WP Accessibility plugin works

For more information, you can read our guide on how to improve your WordPress site’s accessibility.

Make Your WordPress Site Even Easier to Use With These Tips

Want to make your site easier to use and look great? Check out these helpful guides:

Video Tutorial

Subscribe to WPBeginner

We hope this article helped you add resizable text to your WordPress site. You may also want to check out our expert picks of the best WordPress drag-and-drop page builders and our complete guide to WordPress theme updates.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

8 CommentsLeave a Reply

  1. The second method is what I choose to add the text resizer. I have a website where I post educational contents in orderly manner. I found this to be useful for my site users as some might be dealing blurred vision or need to see text more clearly so the resize will come in handy for them.

  2. Hi, thanks for the amazing post. I wonder if your site does not have a sidebar, is it possible to to put the widget somewhere else, for example above the navigation.

    • You can place it in your theme’s widget areas if your theme has widget areas available!

      Admin

  3. I have installed the widget but don’t have the Set Controller Text box so on the website it shows the %s.
    Any sugestions? Thanks

  4. Hi, I followed the instructions as on the video but noting happens. Please help.
    I actually wont it to make my girlfriend site to be zoom-able when open in mobile devices. Please suggest…
    Regards,
    Ivo

  5. This widget is AMAZING, thank you so much!!

    I’m curious, I added it to my blog and it is EXACTLY what I wanted, but it only affects the main page of the blog – if you click on an individual post, the widget disappears. Can you tell me how to fix this?

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.