An updated theme (based on Atticus Finch) for ClassicPress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
788 B

<?php
/**
* Jetpack Compatibility File
* See: https://jetpack.me/
*
* @package Atticus Finch
*/
/**
* Add theme support for Infinite Scroll.
* See: https://jetpack.me/support/infinite-scroll/
*/
function atticus_finch_jetpack_setup() {
add_theme_support( 'infinite-scroll', array(
'container' => 'main',
'render' => 'atticus_finch_infinite_scroll_render',
'footer' => 'page',
) );
} // end function atticus_finch_jetpack_setup
add_action( 'after_setup_theme', 'atticus_finch_jetpack_setup' );
/**
* Custom render function for Infinite Scroll.
*/
function atticus_finch_infinite_scroll_render() {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', get_post_format() );
}
} // end function atticus_finch_infinite_scroll_render