Add theme support for Responsive Videos.

This commit is contained in:
Thomas Guillot 2015-10-13 12:39:42 +02:00
parent f6ddaaa21e
commit a29f4497a8
1 changed files with 10 additions and 4 deletions

View File

@ -7,16 +7,22 @@
* @package _s * @package _s
*/ */
/** function _s_jetpack_setup() {
/**
* Add theme support for Infinite Scroll. * Add theme support for Infinite Scroll.
* See: https://jetpack.me/support/infinite-scroll/ * See: https://jetpack.me/support/infinite-scroll/
*/ */
function _s_jetpack_setup() {
add_theme_support( 'infinite-scroll', array( add_theme_support( 'infinite-scroll', array(
'container' => 'main', 'container' => 'main',
'render' => '_s_infinite_scroll_render', 'render' => '_s_infinite_scroll_render',
'footer' => 'page', 'footer' => 'page',
) ); ) );
/**
* Add theme support for Responsive Videos.
* See: https://jetpack.me/support/responsive-videos/
*/
add_theme_support( 'jetpack-responsive-videos' );
} // end function _s_jetpack_setup } // end function _s_jetpack_setup
add_action( 'after_setup_theme', '_s_jetpack_setup' ); add_action( 'after_setup_theme', '_s_jetpack_setup' );