'main', 'render' => 'colinear_infinite_scroll_render', 'footer' => 'page', 'footer_widgets' => array( 'sidebar-5', 'sidebar-6', 'sidebar-7', ), ) ); // Add theme support for Responsive Videos. add_theme_support( 'jetpack-responsive-videos' ); // Add theme support for Site Logo. add_image_size( 'colinear-logo', 480, 108 ); add_theme_support( 'site-logo', array( 'size' => 'colinear-logo' ) ); // Add theme support for Content Options. add_theme_support( 'jetpack-content-options', array( 'blog-display' => 'content', 'author-bio' => true, 'author-bio-default' => false, 'post-details' => array( 'stylesheet' => 'colinear-style', 'date' => '.posted-on', 'categories' => '.cat-links', 'tags' => '.tags-links', 'author' => '.byline', ), 'featured-images' => array( 'archive' => true, 'post' => true, ), ) ); } add_action( 'after_setup_theme', 'colinear_jetpack_setup' ); /** * Custom render function for Infinite Scroll. */ function colinear_infinite_scroll_render() { while ( have_posts() ) { the_post(); get_template_part( 'template-parts/content', get_post_format() ); } } /** * Return early if Site Logo is not available. */ function colinear_the_site_logo() { if ( ! function_exists( 'jetpack_the_site_logo' ) ) { return; } else { jetpack_the_site_logo(); } } /** * Return early if Author Bio is not available. */ function colinear_author_bio() { if ( ! function_exists( 'jetpack_author_bio' ) ) { return; } else { jetpack_author_bio(); } } /** * Overwritte default gallery widget content width. */ function colinear_gallery_widget_content_width( $width ) { return 863; } add_filter( 'gallery_widget_content_width', 'colinear_gallery_widget_content_width');