Last active
August 29, 2015 14:22
-
-
Save fovoc/2ee171820d469880288b to your computer and use it in GitHub Desktop.
Maera - add Infinite Scroll support (WIP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Add theme support for infinite scroll. | |
| * | |
| * @uses add_theme_support | |
| * @return void | |
| */ | |
| function maera_infinite_scroll_init() { | |
| add_theme_support( 'infinite-scroll', array( | |
| 'type' => 'scroll', | |
| 'footer_widgets' => false, | |
| 'container' => 'main', | |
| 'footer' => 'false', | |
| 'wrapper' => true, | |
| 'render' => false, | |
| 'posts_per_page' => false, | |
| ) ); | |
| } | |
| add_action( 'after_setup_theme', 'maera_infinite_scroll_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment