Reading time counter

Posted in: Newspaper
Post count: 60

Hi there!
We’ve implemented a reading time plugin (counts the words in the post and shows: “Reading time: X minutes”, and are trying to get it correctly setup.
First thing we’ve done is to create a child theme and edit loop-single.php and inserted the plugin’s shortcode:

This is the result, not aligning correctly with the other content on the left:

– Could you give us a hint on how to align it correctly?
– Where can we find reference on how to insert an icon, just as here:

Thanks!

Post count: 60

Also, on the other hand, we’d like to implement the reader on the front pages, i.e. as here:

Where should we start?
Thanks!

P.S.: many newspaper/blog sites (i.e. entrepreneur)have this function, I think Tagdiv could consider implementing this into the theme.

Post count: 9544

We had this on our news sites and got rid of them.
Useful for longer stories that break into multiple pages, but for news sites with 400 to 900 word stories it served no purpose.

Just an opinion, sorry not actual help.

Post count: 6535

Hi @Metric


@Metric
I am not aware of plugin’s functionality and I can’t provide a solution for the moment. As a hint you can use a new span element and with a bit of css the output will be properly centered. Here is a basic example:

<span class=”reading-time”>
<?php //plugin’s shortcode goes here ?>
</span>

You can use browser inspector to identify the required selectors: https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

The css which generate that icons can be found below:

.td-icon-views:before {
content: '\e805';
}

To add the reading time on modules you need to edit the file corresponding with each module and paste your custom code there: http://screencast.com/t/bu9C6YQoQhP
Note that We can’t offer customization services at the moment so if you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.