In one of my previous tutorials titled How to Show Comments on Demand in Genesis, I showed how we can hide the comments section and display it when a button is clicked.
This tutorial provides the steps to not output the comments list in the first place and then fetching them dynamically and displaying them using Ajax when a "Show Comments" button is clicked in Genesis.
Step 1
Create a file named say, load-comments.js inside child theme's js directory having the following:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
[…] loading it (dynamically fetching) on click. If you are interested in true dynamic loading, follow this tutorial […]