Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Basic Infinite Scroll support #107

Closed
wants to merge 2 commits into from

5 participants

@ethitter
Owner

Adds the most basic support for Infinite Scroll, with a link to the support doc for users to expand on it.

Fixes #105.

@mfields

I think that overall this is a really good idea. I think that the code should be included in a file named jetpack.compat.php that lives inside inc/ - this file should be included in functions.php and be commented out by default. What does everyone else think?

@philiparthurmoore
Collaborator

What does everyone else think?

Sounds like a good plan to me.

@ianstewart
Owner

+1 to a Jetpack file in includes. /inc/jetpack.php ?

@philiparthurmoore
Collaborator

/inc/jetpack.php ?

We use jetpack.compat.php for all the files on WP.com, so I'd prefer to follow that convention or change the way we name it on .com to follow suit.

@obenland
Owner

Yes!

@mfields

I'm not sure why we use jetpack.compat.php - I was just following an already established convention. Would jetpack.php be better? I kinda like it.

@philiparthurmoore
Collaborator

I'm not sure why we use jetpack.compat.php - I was just following an already established convention. Would jetpack.php be better? I kinda like it.

I like it, too. :)

@ethitter
Owner

If we're in agreement, I'll make these changes.

For the record, it sounds like a fine idea to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 functions.php
View
10 functions.php
@@ -75,6 +75,16 @@ function _s_setup() {
* Add support for the Aside Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', ) );
+
+ /**
+ * Register basic support for Infinite Scroll
+ *
+ * For more options, see http://jetpack.me/support/infinite-scroll/
+ */
+ add_theme_support( 'infinite-scroll', array(
+ 'container' => 'content',
+ 'footer' => 'page'
+ ) );
}
endif; // _s_setup
add_action( 'after_setup_theme', '_s_setup' );
Something went wrong with that request. Please try again.