You may have noticed the little bar at the end of the Divi Tips articles? In this bar, you'll find the number of words in the article, the reading time, the number of views and a clap vote system.
Recently, I sent you an e-mail (newsletter whose registration form is in the sidebar of this article) to ask you if you would be interested in knowing how to add this data to your articles. You've been very enthusiastic! So here's my answer...
Advertisement: This article contains affiliate links that you will easily recognize. The classic links are in purple and sponsored links are in pink.
1 - Count the number of words and reading time with WP Word Count
WP Word Count is a free extension (freemium) and light available on the official WordPress extensions directory.
Its adjustments are simple to make. After installing and activating the extension, here is what you need to do:
- Go to the Word Count > Calculate tab.
- Click on "Calculate Word Count" and wait. The extension will retrieve the number of words contained in your publications.
- Then, from the Reading Time tab, you can enter how many words correspond to one minute of reading. By default, 250 words are equivalent to 1 minute of reading time.
- You can activate the automatic display of the reading time within your publications by simply checking the box provided for this purpose (not useful for the rest of the tutorial).
- You can also insert a text that will be placed before and/or after the reading time.
Finally, in the other tabs (Top Content, All Content...), you will find statistics: how many articles, how many pages, how many words, total reading time, etc.
2 - Display the number of views of an article with Post Views Counter
Post Views Counter is also a free and easy to set up plugin. What's not bad, with this plugin, you can display or not the number of views in a public way. This means that you can install Post Views Counter for back-office statistics purposes.
Once the extension is installed and activated, you will find its setting options in the Settings tab > Post Views Counter. Its parameters are separated in 2 tabs: General and Display.
- You can activate the counting of views according to publication types. Just check the box. You can also decide the counting method (PHP, JS, etc.).
- You can add a new column in the back office. This one will appear in the list of articles (and/or pages, depending on your choices checked) in order to obtain the statistics of views per publication.
- You can adjust the frame counting methods and intervals.
- You can exclude certain visitors from the count.
- Then, from the View tab, you will be able to set up everything related to the display of the number of front views. For example, you can add a text next to the number of views.
- You can automatically insert the number of views according to the type of publication (not useful for the rest of the tutorial).
- But also the position of the automatic display, for example: before the content.
- Finally, you will be able to choose whether or not to display an icon next to the number of views and you will be able to modify the Dashicons icon, which is the official WordPress icon font.
That's it, it's pretty simple as an extension but the options are enough to enhance your blog posts.
3 - Add applause with WP Applauding
The last item I propose to add in your articles is a voting system with WP Applause. But we could very well have chosen a system with a star like KK Star Rating...for example.
This extension is free but, let's say it right away, it is not often updated...
Once installed and activated, this is how it works:
- Go to the WPApplaud tab to check the types of publications on which you would like to see the "little applause" appear.
- You can exclude publications manually.
- You can disable the CSS in order to embark your own.
- You can choose the counting method (Ajax and maximum count per user).
- You have the possibility to add custom titles.
- Finally, and this is what interests us most for the rest of the tutorial: other display methods. You can use a shortcode to display applause in the desired location rather than automatically.
4 - Integrate elements to blog posts with the Theme Builder
So, now that you have installed and set up the 3 extensions, I suggest you display this reading information in your blog posts.
So you have understood that you either create or modify your article template created with the Theme Builder.
You add a new row (the green "+") cut into 4 columns.
In each column of this row, you add a text module in which you will place the appropriate shortcodes:
- [ wp-word-count ]* to display the number of words.
- [ wp-word-count-reading-time ]* to display the playback time.
- Press [ post-views ] * to display the number of frames.
- [ wp_applause ]* to display the voting system.
*Please note: do not copy-paste the above shortcodes as I deliberately added a space between the square brackets to allow them to be displayed.
Well, it's as simple as this, here's the result:
Did you know that you can test Divi for free? Go to this page and click on "TRY IT FOR FREE"
5 - Adjusting the display with some CSS
Finally, it is possible that you are not entirely satisfied with the final rendering, in this case, you can add some CSS code to perfect the display.
For example, you can add a "before" and an "after" to display text around the reading time. This is possible in the options of the WP Word Count plugin but the visual is not optimal. You can also change the color of the vote counter (WP Applaud).
So, how about these tips for enhancing your blog posts with Divi?