Add a Reading Progress Bar to Your Blog Posts with Orbit Fox and AI
A scroll progress bar on your blog posts, in your color and size, checked on a live post.
Prerequisites
A site connected to WPVibe running Orbit Fox 3.0.10 or newer (tested on 3.0.14, free) on WordPress 6.9 or newer, with an administrator account.
My WordPress site uses Orbit Fox. Add a reading progress bar to my blog posts, color [#0e7490], at the [top, bottom, left or right] of the screen, [4] pixels thick on computers and [2] on phones. 1. Run discover_abilities with category orbit-fox. If either orbit-fox/list-modules or orbit-fox/configure-module is missing, stop and tell me to install or update the free Orbit Fox plugin (3.0.10 or newer, on WordPress 6.9 or newer). 2. Run orbit-fox/list-modules with module_id reading-progress-bar and tell me whether it is on and its current settings. 3. Build one orbit-fox/configure-module call with module_id reading-progress-bar, active true and these settings (a list of objects, each with name and value, every value a string such as "1"): display_on_post 1, and 1 for each content type I named (pages, products); for every other display_on_ setting: if the module is active now and the setting is 1 (the bar may show there today), ask me whether to keep it, otherwise set it to 0; position set to the choice value whose label matches where I asked (list-modules gives each choice's value and label); color as a hex color; size and mobile_size as whole numbers of pixels between 1 and 10 (this limit is the recipe's, not the plugin's: if I asked for more, tell me a thick bar at the top covers part of the header, and use 10); show_on_mobile 1, or 0 if I said no bar on phones. Run the call with dry_run true. If it returns orbit_fox_invalid_settings, tell me which setting and why, fix only that, and run the dry run again. Show me the changes in plain words. Wait for my yes. 4. On my yes, run the same call with dry_run false. 5. Run rest_api GET /wp/v2/posts with status publish and per_page 1 to get my latest post's link, then get_page_html on that link with selector .obfx-rpb, and confirm the bar is there. If the bar is missing, tell me a page cache may still be serving the old page and to clear it. 6. List each change so I can spot-check it. To remove the bar later: orbit-fox/configure-module with module_id reading-progress-bar and active false; the settings are kept.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Add a Reading Progress Bar to Your Blog Posts with Orbit Fox and AI” recipe from the WPVibe cookbook on my connected site.
Long posts lose readers halfway down, partly because nothing tells them how much is left. A thin bar that fills as they scroll does, and Orbit Fox has one built in.
The AI turns on Orbit Fox’s reading progress bar for blog posts unless you ask for more, in your color, size and position. It shows you the changes before saving and saves only on your yes. Then it opens one of your posts and checks the bar is there.
Give a hex color (your brand color works) and a position: top, bottom, left or right edge. A few pixels thick is plenty: the recipe keeps it between 1 and 10, because a thick bar at the top covers part of your header. To show it on pages or products too, name them in the prompt.
Outcome
Your blog posts show a progress bar that fills as readers scroll, in the color and place you chose.