Skip to content

Commit

Permalink
Merge pull request #831 from Automattic/responsive-videos
Browse files Browse the repository at this point in the history
Add theme support for Responsive Videos.
  • Loading branch information
karmatosed committed Oct 27, 2015
2 parents f6ddaaa + 6f39c5e commit 9ce731d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@
*/

/**
* Add theme support for Infinite Scroll.
* Jetpack setup function.
*
* See: https://jetpack.me/support/infinite-scroll/
* See: https://jetpack.me/support/responsive-videos/
*/
function _s_jetpack_setup() {
// Add theme support for Infinite Scroll.
add_theme_support( 'infinite-scroll', array(
'container' => 'main',
'render' => '_s_infinite_scroll_render',
'footer' => 'page',
) );

// Add theme support for Responsive Videos.
add_theme_support( 'jetpack-responsive-videos' );
} // end function _s_jetpack_setup
add_action( 'after_setup_theme', '_s_jetpack_setup' );

Expand Down

0 comments on commit 9ce731d

Please sign in to comment.