'infinite-container', 'wrapper' => false, 'render' => 'organic_horizon_render_infinite', // 'footer_widgets' => array( 'footer' ), // 'footer' => 'wrap', ) ); // Add theme support for CPT. add_theme_support( 'jetpack-portfolio' ); add_theme_support( 'jetpack-testimonial' ); } endif; add_action( 'after_setup_theme', 'organic_horizon_jetpack_setup' ); /** * Infinite Scroll: function for rendering posts */ if ( ! function_exists( 'organic_horizon_render_infinite' ) ) : function organic_horizon_render_infinite() { if ( is_home() ) { get_template_part( 'content/loop', 'blog' ); } else { get_template_part( 'content/loop', 'archive' ); } } endif; /** * Enables Jetpack's Infinite Scroll in archives, but not on home blog. * * @return bool */ if ( ! function_exists( 'organic_horizon_jetpack_infinite_scroll_supported' ) ) : function organic_horizon_jetpack_infinite_scroll_supported() { return current_theme_supports( 'infinite-scroll' ) && ( is_archive() || is_search() ) && ! is_home(); } endif; add_filter( 'infinite_scroll_archive_supported', 'organic_horizon_jetpack_infinite_scroll_supported' );