
If you want to know how to add a reading progress bar to WordPress, you have three good options in 2026: a free plugin, a small code snippet, or the block editor. All three are free, take under half an hour, and give your readers the same slim bar at the top of the page.
A reading progress bar is a small touch, but it changes how a long article feels: instead of an endless wall of text, your reader sees exactly where they are and how much is left. This guide shows you how to add a reading progress bar to WordPress with each method, step by step, so you can pick the one that fits your site.
In this guide
- What Is a Reading Progress Bar, and Why Add One?
- Before You Start: 3 Decisions That Shape Your Choice
- How to Add a Reading Progress Bar to WordPress: 3 Methods at a Glance
- Method 1: How to Add a Reading Progress Bar to WordPress With the Free ReadBar Plugin
- Method 2: How to Add a Reading Progress Bar to WordPress With a Small Code Snippet
- Method 3: How to Add a Reading Progress Bar to WordPress With the Block Editor (No Plugin)
- Which Method Should You Choose?
- Common Problems and Fixes
- Does a Reading Progress Bar Slow Down WordPress?
- Conclusion
- Frequently Asked Questions
What Is a Reading Progress Bar, and Why Add One?
A reading progress bar is a thin horizontal bar, usually fixed to the top of the browser window, that fills from left to right as a visitor scrolls through an article. At the top it is empty; at the last paragraph it reaches 100%.
Readers like it because it answers a silent question: how long is this going to take? A long guide looks daunting with no landmarks; with a progress bar, it feels like a walk with a visible destination — which is why so many site owners look up how to add a reading progress bar to WordPress when their articles get longer.
It costs nothing, adds almost no weight, and works on every post at once. A table of contents tells readers what is inside; a progress bar tells them where they are (see our guide on how to add a table of contents to WordPress). It will not fix a boring article, and Google does not rank pages for having one.
Before You Start: 3 Decisions That Shape Your Choice
Settle three small decisions before you pick a method — whichever way you go about how to add a reading progress bar to WordPress.
First, decide where the bar should appear. Most sites show it on single posts only, where long reading happens.
Second, decide how the bar should measure progress. The simple approach measures the whole page; the better one measures only the article, so the bar hits 100% at the last paragraph, not in the comments.
Third, decide how much control you want over the look. A plugin gives you colours, height, and position from a settings screen. A code snippet gives you total control but means editing values by hand.
How to Add a Reading Progress Bar to WordPress: 3 Methods at a Glance
All three methods answer the question of how to add a reading progress bar to WordPress, and all three are free. The difference is how much control you get and how much maintenance you accept.
| Method | Cost | Setup time | Customisation | Performance | Best for |
|---|---|---|---|---|---|
| 1. ReadBar plugin | $0 (free on WordPress.org) | About 5 minutes | Colours, height (1–40 px), position, bar styles, per-post settings | Very light, plain JavaScript, no jQuery | Most site owners |
| 2. Code snippet (WPCode or child theme) | $0 | About 15 minutes | Total control over markup, CSS, and behaviour | Lightest of all, only a few lines of code | Owners who want zero extra plugins |
| 3. Block editor (Custom HTML block) | $0 | About 10 minutes | Good control, styled with Additional CSS | Light, but the script loads wherever the template loads | Block-theme sites with no plugin appetite |
Most people should use Method 1: free, maintained, and it handles the fiddly details for you.
Method 1: How to Add a Reading Progress Bar to WordPress With the Free ReadBar Plugin
The plugin route is the fastest way to learn how to add a reading progress bar to WordPress, and ReadBar is the strongest free option on WordPress.org in November 2026: a free plugin by NoorWork, version 1.1.0 (released 10 September 2026), requiring WordPress 6.2 or newer and tested up to WordPress 7.1.
ReadBar shows an estimated reading time and a scroll progress bar, both optional. The bar can sit at the top or bottom, with independent positions for mobile, tablet, and desktop, in flat, rounded, gradient, or glow styles at any height from 1 to 40 pixels. It measures the article, not the whole document, so the bar reaches 100% at the end of the text. It is plain JavaScript with no jQuery, respects reduced-motion preferences, and exposes a proper progressbar role for screen readers.

Step 1: Install and activate ReadBar
In your dashboard, go to Plugins > Add New, search for “ReadBar”, and click Install Now, then Activate. Or download it from wordpress.org/plugins/read-bar/ and upload the zip.
After activation, a setup screen asks about usage reporting; neither choice is pre-selected and no feature is withheld either way. If you allow it, the plugin sends your site address, WordPress and PHP versions, and theme name to the developer’s server on activation, update, or deactivation — never your post content, your visitors, or any analytics about them.
Step 2: Configure the progress bar
Open the ReadBar settings and go to the Progress Bar tab. Turn the bar on, choose top or bottom, and set the height — 3 to 4 pixels is the classic look. Pick a colour that matches your theme; a live preview shows changes without saving first.
Under “Display on Post Types”, tick posts; under Visibility, tick the devices you want (on most blogs, all three). Every post also gets a ReadBar box in the editor sidebar for a manual reading time, or to hide ReadBar on that entry.
What ReadBar does well — and where it falls short
ReadBar’s strengths are its price ($0), article-based measurement, and device-specific positions. It also ships as blocks for Site Editor templates, plus a [read_bar_reading_time] shortcode. Its main limit is its age: a young plugin with only a couple of reviews on WordPress.org. A simpler alternative is Catch Scroll Progress Bar (version 2.2, released 22 May 2026, also free). Any of these answers how to add a reading progress bar to WordPress with a plugin.
Method 2: How to Add a Reading Progress Bar to WordPress With a Small Code Snippet
The code method is the answer if you want to know how to add a reading progress bar to WordPress without installing another plugin: a few lines of PHP, CSS, and JavaScript, and nothing else. No settings screen, no extra database table — but you maintain it yourself.
Do not paste code into your theme’s functions.php unless you use a child theme — a theme update will overwrite it and silently delete your bar. Use a snippet plugin instead: WPCode is free on WordPress.org, has over 3 million active installs, and catches fatal errors before a broken snippet can lock you out. Paid plans start at $49 for the first year (renewing at $99 a year), but everything here works on the free version: wordpress.org/plugins/insert-headers-and-footers/.

The snippet
The snippet below has three parts: PHP that prints the bar markup on single posts, CSS that fixes the bar to the top of the screen, and JavaScript that updates its width as the reader scrolls.
// 1. Print the progress bar markup on single posts.
add_action( 'wp_body_open', function() {
if ( ! is_singular( 'post' ) ) {
return;
}
echo '<div id="bh-progress" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" aria-label="Reading progress"></div>';
} );
// 2. Add the styling and the scroll script.
add_action( 'wp_footer', function() {
if ( ! is_singular( 'post' ) ) {
return;
}
?>
<style>
#bh-progress {
position: fixed;
top: 0;
left: 0;
height: 4px;
width: 0;
background: #6C5CE7;
z-index: 9999;
}
</style>
<script>
(function () {
var bar = document.getElementById( 'bh-progress' );
if ( ! bar ) { return; }
function update() {
var doc = document.documentElement;
var total = doc.scrollHeight - doc.clientHeight;
var pct = total > 0 ? ( doc.scrollTop / total ) * 100 : 0;
bar.style.width = pct + '%';
bar.setAttribute( 'aria-valuenow', Math.round( pct ) );
}
window.addEventListener( 'scroll', update, { passive: true } );
window.addEventListener( 'resize', update );
update();
})();
</script>
<?php
} );
Add it safely with WPCode
Install and activate WPCode, then go to Code Snippets > + Add Snippet and choose Add Your Custom Code (New Snippet). Pick PHP Snippet, paste the code above, set it to run on the front end only, and toggle it to Active. Open a post and scroll: the bar should fill from left to right. That is the whole install for this approach to how to add a reading progress bar to WordPress — just one snippet.
With a child theme, paste the same code into its functions.php instead. WPCode is simply easier to switch off: one toggle deactivates the snippet, with no file editing.
Customising the snippet
Three small changes cover most customisation: replace #6C5CE7 with your brand colour, change height: 4px to any value from 2 to 8 pixels, or replace top: 0 with bottom: 0. That is the main reason developers prefer this route when they work out how to add a reading progress bar to WordPress by hand. To measure only the article, adapt update() to measure your theme’s <article> element instead.
Method 3: How to Add a Reading Progress Bar to WordPress With the Block Editor (No Plugin)
The third way to learn how to add a reading progress bar to WordPress needs no plugin and no PHP file. On a block theme such as Twenty Twenty-Four or Twenty Twenty-Five, place the bar directly inside your Single Post template with a Custom HTML block, and it appears on every post automatically.
In your dashboard, go to Appearance > Editor, open Templates, and choose Single Posts. On a classic theme such as GeneratePress there is no Single Posts template — classic themes keep templates in PHP files — so use Method 1 or Method 2 instead.
At the very top of the template, before the Post Title block, add a Custom HTML block and paste the bar markup, CSS, and JavaScript into it — the same three pieces from Method 2, combined into one block. Save the template, then open a post and scroll.
<div id="bh-progress" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" aria-label="Reading progress"></div>
<style>
#bh-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: #6C5CE7; z-index: 9999; }
</style>
<script>
(function () {
var bar = document.getElementById('bh-progress');
if (!bar) { return; }
function update() {
var doc = document.documentElement;
var total = doc.scrollHeight - doc.clientHeight;
var pct = total > 0 ? (doc.scrollTop / total) * 100 : 0;
bar.style.width = pct + '%';
bar.setAttribute('aria-valuenow', Math.round(pct));
}
window.addEventListener('scroll', update, { passive: true });
window.addEventListener('resize', update);
update();
})();
</script>
When this method wins — and when it does not
This method wins when you already live in the Site Editor and want the bar in your theme, not in a plugin: nothing extra loads elsewhere, and there is nothing to update. It loses if you switch themes — the bar leaves with the old template — and a template mistake affects every post at once. If either worries you, Method 1 is safer — still the simplest answer to how to add a reading progress bar to WordPress.
GeneratePress users can do the same with its Elements module, where a Hook element injects HTML into a theme hook location without editing files. Elements is premium: GeneratePress One costs from $99 a year for one site (generatepress.com/pricing, checked 15 November 2026). Do not buy a theme bundle just for a progress bar.
Which Method Should You Choose?
Choose the plugin if you want the job done in five minutes, with per-device positions and article-based measurement handled for you.
Choose the code snippet if you keep your plugin count low, or want the bar to look exactly a certain way. The snippet in Method 2 is about forty lines, costs $0, and will keep working for years — keep it in WPCode or a child theme, never in a parent theme file.
Choose the block-editor method if you run a block theme and like the bar living in your theme. Do not combine methods: two bars on one page will overlap and confuse readers. Any single one fully solves how to add a reading progress bar to WordPress.
Common Problems and Fixes
These are the problems that come up most often when people learn how to add a reading progress bar to WordPress — and the fix for each one.
The bar does not appear at all. Check you are on a single post, not your homepage or an archive — all three methods target posts only. For the plugin, confirm the bar is on and posts are ticked under “Display on Post Types”. For the code methods, confirm the snippet is active and front-end only.
The bar is stuck at 100% or fills too early. This is whole-page measurement: a short post with a long footer or big comments section pushes the bar to full early. ReadBar 1.1.0 measures the article element by default; in the code methods, adapt update() to measure the <article> element instead.
The bar sits under the sticky header. A bar fixed to top: 0 can hide behind a sticky header: raise the z-index in the CSS, or move the bar to the bottom of the screen.
The bar looks wrong on mobile, or a colour change does nothing. Check the height on a real phone: a 4-pixel bar is easy to miss on a small screen, so mobile readers sometimes need 5 or 6 pixels. If a change does not show at all, it is almost always caching — clear your caching plugin and browser cache, then hard-refresh. If your site feels slow on mobile, our guide on how to speed up WordPress covers the fixes that matter most.
Does a Reading Progress Bar Slow Down WordPress?
Will learning how to add a reading progress bar to WordPress slow your site down? Almost never. ReadBar adds one small JavaScript file — plain JavaScript, no jQuery, no external requests — and the code methods add only a few lines of inline code. The browser work is one scroll listener updating a single element’s width.
What can slow a site down is the wrong implementation: a heavy plugin that loads jQuery, extra stylesheets, and tracking scripts for a thin bar. ReadBar has no jQuery dependency, and Easy Reading Progress Bar inlines its code with no extra files. Keep custom CSS in the Customizer’s Additional CSS panel; our guide on how to add custom CSS to WordPress shows how. For a related quick win, see how to add a WhatsApp chat button to WordPress.
Conclusion
You now know how to add a reading progress bar to WordPress in three free ways: the ReadBar plugin, a code snippet, and the block editor. All three cost $0 and take under half an hour.
For most sites, the plugin is the right call: install ReadBar, set the bar to the top at 3 to 4 pixels, limit it to posts, and you are done. The snippet in Method 2 does the same job in about forty lines. Either way, test it on a real post and clear your cache. That is how to add a reading progress bar to WordPress — pick one method, set it up today, and move on to writing.
Frequently Asked Questions
Does WordPress have a built-in reading progress bar?
No. WordPress core does not include a reading progress bar, so you need a plugin, a code snippet, or a block in your template. The block editor has a Custom HTML block but no progress-bar block. ReadBar adds one, including a Reading Progress Bar block for Site Editor templates.
Is a reading progress bar free to add?
Yes. Every method in this guide on how to add a reading progress bar to WordPress is free: the ReadBar plugin costs $0, the code snippet costs nothing, and the block-editor method uses built-in WordPress features. The only paid route mentioned here is GeneratePress Elements, which needs the GeneratePress One bundle from $99 a year — and you do not need it for a progress bar.
Will a progress bar work with any WordPress theme?
The plugin method works with almost any theme, because the bar is fixed to the viewport rather than placed inside theme markup. The code method works everywhere too, as long as your theme supports the wp_body_open and wp_footer hooks, which nearly all modern themes do. The block-editor method only works with block themes.
Can I show the progress bar only on blog posts?
Yes. In ReadBar, tick only posts under “Display on Post Types”. In the code methods, the is_singular( 'post' ) check in the snippet already limits the bar to single posts. Showing it on pages and archives is possible, but it adds little value there.
Does a reading progress bar affect SEO?
Not directly. Google does not rank pages for having a progress bar. It can help indirectly if it keeps readers on the page longer and reduces quick bounces, but it is not an SEO tool. Treat it as a reader-experience improvement, and keep investing in content quality and site speed for SEO.
Why does my progress bar reach 100% before the article ends?
Your bar is measuring the whole page instead of the article. The footer, comments, and related-posts sections all count toward the total height, so the bar fills early. Switch to article-based measurement: ReadBar does this by default in version 1.1.0, and the code snippet can be adapted to measure the <article> element instead of the document.