There is a popular Wix code snippet most of the Wix code community uses thanks to Nayeli and Totally codeable platform but the problem started is when the code is repeatedly use. Why you shouldn't repeat the code ? What is DRY (Don't Repeat Yourself)? 1. It will be easy to maintain the code. 2
To see this working, head to your live site.