This code enables you to pre load any number of comments and then load more comments by any number on button click.
In this example, 2 comments load by default and 2 more comments are shown each time the button is clicked. Also, the comments fade in using a value you can easily adjust.
Watch the following demo video to see how it works :
Demo Video #
Shows comments loading on click using the Genesis Sample child theme by StudioPress.
Works in any Genesis child theme.
Code Installation #
There’s 3 steps relating to usage of files in the download folder :
Step 1 – Copy & paste the PHP code from the functions.php file to the end of your child themes functions file.