“Never let the fear of striking out keep you from playing the game.” – Babe Ruth
In the PART 1 of adding view counter to WIX website, we learned how to automatically increase views for each dynamic item.
In this tutorial, we will display these views on our WIX repeater.
The steps I took are pretty easy;
Added text element to display the number of views on the repeater.
Added eye icon as a symbol for views.
Added the repeater onItemReady function to enable us see the number of views for each items.
Added a formatView() function to enable us to format the view so that 1,000 views looks like 1K views and 1,000,000 views is displayed as 1M. Cool right?😎
COPY CODE BELOW 👇🏽
Code
Leave a comment (1)
Thanks for leaving a comment🎉
Walter Odibi
Apr 18, 2022
Awesome Feature
This tutorial shows you how to display views on your Wix repeater.
📺WATCH VIDEO HERE https://www.youtube.com/watch?v=Iz7SdaCSdXg
Reply
Walter Odibi
January 20, 2000