'main', 'footer' => 'page', ) ); // Add theme support for Responsive Videos. add_theme_support( 'jetpack-responsive-videos' ); // Add theme support for Site Logo. add_theme_support( 'site-logo', array( 'size' => 'penscratch-site-logo' ) ); // Add theme support for Content Options. add_theme_support( 'jetpack-content-options', array( 'blog-display' => 'content', 'post-details' => array( 'stylesheet' => 'penscratch-style', 'date' => '.posted-on, .byline .sep, body:not(.group-blog):not(.single) .byline + .sep', 'categories' => '.cat-links', 'tags' => '.tags-links', 'author' => '.byline .author, .group-blog .byline + .sep, .single .byline + .sep' ), 'featured-images' => array( 'archive' => true, ), ) ); } add_action( 'after_setup_theme', 'penscratch_jetpack_setup' ); // Turn off infinite scroll if mobile + sidebar, or if social menu is active if ( function_exists( 'jetpack_is_mobile' ) && ! function_exists( 'penscratch_has_footer_widgets' ) ) { function penscratch_has_footer_widgets() { if ( has_nav_menu( 'social' ) || ( jetpack_is_mobile( '', true ) && is_active_sidebar( 'sidebar-1' ) ) ) return true; return false; } } //endif add_filter( 'infinite_scroll_has_footer_widgets', 'penscratch_has_footer_widgets' );