• Hi Anders

    Theme looks great. I really want to use it for my new website. But I am really keen on having infinite scroll load new posts as you scroll to the bottom/ lazy load style. Is there an option to add this?
    Or use infinite scroll plugin with your theme?

    Is there a option to have sidebar on single posts? I do need widgets?

    Thanks a lot & cheers
    Dean

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, I’m interested in this as well. How can I do this?

    You need to set up a child theme for infinite scroll. I have Jetpack enabled, and this is the code I use for my website in my functions.php:

    // infinite scroll posts per loop
    function iona_infinite_scroll_settings( $args ) {
    	if ( is_array( $args ) )
    		$args['posts_per_page'] = 12;
    		$args['type'] = 'scroll';
    	return $args;
    }
    
    add_filter( 'infinite_scroll_settings', 'iona_infinite_scroll_settings' );

    The reason I chose 12 posts per page is because Hitchcock does three posts across, so that loads four even rows at a time.

    Thanks, that worked great! I put the code at the end in functions.php
    Don’t forget to install the Jetpack plugin and connect it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Infinite scroll – lazy load /’ is closed to new replies.