The Estimated Read Time plugin for ClassicPress allows you to display expected reading times on your articles and summaries. The average person reads at 200 words per minute, so, that's the default setting. You can change it with a simple filter to suit your own audience and content.
There is only a single setting: the reading speed. To change the reading speed, you can use this filter.
To provide the most versatile placement options, the estimated read time display is implemented with a shortcode that is designed to be placed in your theme template files. It may require some experimenting to find just the right templates for your particular theme, but you can try the content.php
, single.php
, archive.php
, and page.php
templates as a starting point.
Note that the shortcode is designed to work in templates that are in the loop, so you won't be able to place the shortcode in, say, your header.php
or footer.php
files. See the examples below and place one or the other into your theme's template file(s) where you would like the estimated read time to be displayed.
<?php echo do_shortcode('[estimated-read-time words="'.str_word_count(strip_tags($post->post_content)).'"]'); ?>
<span class="dashicons dashicons-clock"></span> <?php echo do_shortcode('[estimated-read-time words="'.str_word_count(strip_tags($post->post_content)).'"]'); ?>
If you are using a theme that is a parent theme (as opposed to a child theme) you will need to be cautious about updating your theme because the update will overwrite all the theme files. To avoid this, you have several options, as follows. Options are listed in the order of preference.
- use a child theme and add your shortcodes to your child theme's templates, or
- use a theme that you built yourself to avoid surprise updates, or
- carefully copy your shortcodes out of your theme files before updating, then replacing them afterward, or
- continue using the parent theme, but don't update it.
azurecurve was one of the first plugin developers to start developing for Classicpress; all plugins are available from azurecurve Development and are integrated with the Update Manager plugin for fully integrated, no hassle, updates.
The other plugins available from azurecurve are:
- Add Open Graph Tags - details / download
- Add Twitter Cards - details / download
- Avatars - details / download
- Breadcrumbs - details / download
- Call-out Boxes - details / download
- Code - details / download
- Comment Validator - details / download
- Conditional Links - details / download
- Contact Forms - details / download
- Disable FLoC - details / download
- Display After Post Content - details / download
- Estimated Read Time - details / download
- Events - details / download
- Filtered Categories - details / download
- Flags - details / download
- Floating Featured Image - details / download
- Gallery From Folder - details / download
- Get GitHub File - details / download
- Icons - details / download
- Images - details / download
- Insult Generator - details / download
- Load Admin CSS - details / download
- Loop Injection - details / download
- Maintenance Mode - details / download
- Markdown - details / download
- Mobile Detection - details / download
- Multisite Favicon - details / download
- Nearby - details / download
- Page Index - details / download
- Post Archive - details / download
- Redirect - details / download
- Remove Revisions - details / download
- RSS Feed - details / download
- RSS Suffix - details / download
- Series Index - details / download
- Shortcodes in Comments - details / download
- Shortcodes in Widgets - details / download
- Sidebar Login - details / download
- SMTP - details / download
- Snippets - details / download
- Strong Password Generator - details / download
- Tag Cloud - details / download
- Taxonomy Index - details / download
- Taxonomy Order - details / download
- Theme Switcher - details / download
- Timelines - details / download
- Toggle Show/Hide - details / download
- Update Admin Menu - details / download
- URL Shortener - details / download
- Username Protection - details / download
- Widget Announcements - details / download