Show eye-counter in article-category-view

Posted in: Newspaper
Post count: 10

Is it possible to show the eye-counter in article-category-view?

Screenshot

Post count: 23312

Hello c.schwalm,

Unfortunately, our theme does not have such an option to display the post view counter for modules, sorry! In order to achieve as you wish, please notice that you have to do some additional customizations through code that involve custom work. Below, I gave you a hint how could you do this, but please notice that is not a simple task and addresses only for ADVANCED USERS.

By default, the theme does not display the views on modules but you can achieve that by adding this code in td_module.php file like here: http://screencast.com/t/4cmuvLmE6yhttp://pastebin.com/pNLiBVP3 Then you need to edit the file corresponding to the module where you want to display the views and call the function like here: http://screencast.com/t/yoOUEvv1nw

<?php echo $this->get_views();?>

For example to display the views on module 1 the file that must be edited is td_module_1.php. The result should be like here: http://screencast.com/t/TqyShcFxOx

Hope this helps!

Thank you for your understanding!

Post count: 10

Hey Catalin,

thank you for the hint!

We have Newspaper 7.3 installed at the moment and I found the files and edited them accordingly, but it is not working 🙁 Fatal error


Maybe I also need to edit another file for this new version of Newspaper 7.3?

Thanks
Chris

Post count: 22421

Hello,

I have tested this again. Be mindful where you place the code. The solution provided by Catalin works. Please take a look at the screens again and follow the instructions properly. Make sure you place the code exactly as instructed. There is also another thread on this here:
https://forum.tagdiv.com/topic/view-numbers-in-block/

Thank you!

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