How To Add Reading Progress Bar In Blogger [100% Working] Fully Optimized

This article explains how to add a reading progress bar to Blogger that works 100% of the time without a third-party website and uses minimal javascript.

Naturally, Javascript slows down our website blogger, but as a solution, we minimized the script so that it does not affect your SEO or Core Web Vitals.

As a result, we present the improved universal code for the reading progress bar. which is appropriate for any blog or website. The reading progress bar is very helpful in blogs because it shows how long our article is and looks very professional and attractive.

Note: There may be affiliate links in some of the links in this post. Don't be selfish; if you intend to purchase online services, I recommend using affiliate links so that both the user and the affiliate can benefit, and the blogger can earn money from his laborious writing.  I believe this: take care of one another. If you agree with this, then tell your loved ones.

How to Add a Reading Progress Bar to Blogger Please refer to the following guide: carefully to prevent mistakes. Therefore, we will begin by implementing Javascript and CSS before proceeding to the final step. To add a reading progress bar to Blogger, simply follow these three steps.

And if you find any errors, please let us know so that we can help you and resolve your problem.

Step 1

As we decided, we'll start by looking at Javascript to make sure you know it well. Simply copy and paste the Javascript code below into your blog or website to incorporate a progress bar using Javascript.

In the </body> Tag, paste the code above anywhere.

<script>window.onscroll = function() {myFunction()};function myFunction(){var winScroll = document.body.scrollTop || document.documentElement.scrollTop;var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;var scrolled = (winScroll / height) * 100;document.getElementById(&quot;myBar&quot;).style.width = scrolled + &quot;%&quot;;}</script>

Step 2 

Simply copy and paste the following CSS code into your browser: ]]</b:skin>


Step 3

Now paste the following HTML code: just below the <body> tag (in some templates, this tag would be attached to a class or schema)

 <div class='progress-container'> <div class='progress-bar' id='myBar'/> </div>

This is what you all need to do to create a Reading Progress Bar For Blogger that looks good and is professional.

Changing Your Progress Bar's Colors and Size 

Edit the Background to change the color: Replace #F86152 with the color code you prefer. If you need to alter the color scheme, please let me know or look it up on Google.

Additionally, edit the height to alter the size of your progress bar: Replace the 5px with 5px. You can view and edit the bar in live view using the inspect element, and you can change the height so that it looks great.

Errors and Troubleshooting

We have successfully completed the How to Add Progress Bar in Blogger tutorial. However, if you write incorrect code, it can result in a troubleshooting issue. However, if you discover errors, simply enter your query into the empty comment section.


Congratulations! You now know more about How to Add Reading Progress Bar to Blogger [100% Working] Fully Optimized. Be the first to comment on this article and let us know how helpful it was to you.

I appreciate it! for giving us your valuable time.

Please return to us...

Post a Comment