Ad space

In-article ad

Ad space
eyJ2IjoxLCJiIjoiODk4NzUxMjU0MTU2NDk5MDUwIiwidyI6ImRlbW8iLCJ0IjoiMSJ9.JNwytzxn68dvLH1Z_gmjrF_npbIlkG_5lKkKaJtx68sNq6xmnGUZVOKYtYqT99no2gj0XcjwsZiev9GzFJK0OA

Head extras

Reading Progress Bar in Centum: A Visual Cue for Reader Progress

The Centum reading progress bar is a thin line in the theme color at the top of the screen. It fills as the reader moves down the post, so they see how far along they are at a glance.

How does it work?

The bar starts empty at the top of the page and grows as the reader scrolls, until it is full at the end of the post. It is built with very light CSS and JavaScript that does not affect page speed at all, and it supports right-to-left layouts automatically, filling from the correct side.

Live example

Open any post on the Centum demo, scroll, and watch the bar at the top of the screen fill as you go.

Hide the reading progress bar

The bar is visible by default. You can hide it on the whole blog without deleting any code:

Steps to hide it
  1. Open Layout in the Blogger dashboard.
  2. In the ⚙ Theme settings gadget, add a new link with the name readProgress and the value 0, then save.
  3. To show it again, delete the link or set its value to 1.

Every Centum setting works the same way. They are all explained in the Centum settings guide.

The reading progress bar is part of Centum and works from the moment you install the theme, with no add-ons.

Copy-and-paste example

To hide the bar, copy these two lines into the ⚙ Theme settings gadget (the name goes in the title field and the value in the link field):

readProgress
0

To show it again, set the value to 1. See the result right away on the live demo.

About the author

Ad space