This page template for Genesis enables you to add a button which loads more items when clicked. In this cases it loads videos added via a custom field named video_embed.
You can set a number of items to show on page load and set another number to be shown on button click.
This jQuery solution works on static pages where there’s no pagination with any type of item including custom fields.
If you’re looking for a solution using Infinite Scroll, try this tutorial.
There’s 3 steps :
Step 1 : From the download folder, upload the file named click-to-load.php and select as a page template on any static page.
Step 2 : From the download folder, upload the file named show.js to your child themes root directory.
Step 3 : From the download folder, copy & paste the CSS from the style.css file to the end of your child themes style.css file and clear caching.
Register or login to access the download folder :
Leave a Reply
You must be logged in to post a comment.