Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Hardrocker on
Hello,
Can someone please advise how I can add something like this https://codepen.io/shvvffle/pen/JRALqG to a block on my site? Or even point me toward to a module that does the same thing. Thank you.
What I did was create a counter,js file and paste the javascript code in there and upload to the /site/all/theme_name/js directory and specify it in the theme_name.info file. Also copied the css file in to the css directory of the theme and also specified in the theme_name.info file as well.
Comments
Stats Counter to Drupal
Please refer below link. i think it will help you.
https://www.drupal.org/project/visitors
https://www.drupal.org/project/counter
Thank but these modules is
Thank but these modules is not what I'm looking for. I'm just looking for a way to add a bit of dynamic content to the front of my site.
Reply
Try by inserting the loop in a function and calling that function on frontend. Hope it will work in that way.
Let me know if you have more questions.