WordPress.org

Ready to get started?Download WordPress

Forums

Blaskan
Infinite Scroll (4 posts)

  1. mrRICKROCK
    Member
    Posted 11 months ago #

    First up I have to say, I am LOVING this theme!! So clean and simple to use, perfect on all devices... Simply awesome. Thank you Per!!

    The only thing I would love to add is Infinite Scroll. Is this possible? Has anyone achieved this?

    I'm using a child theme, and running it on WP 3.5.1.

    Thanks in advance,
    Rick

    http://wordpress.org/extend/themes/blaskan/

  2. Aditya Pandey
    Member
    Posted 11 months ago #

    See this for adding support 'Infinite Scroll': http://jetpack.me/support/infinite-scroll/
    And always use Child Theme.

  3. mrRICKROCK
    Member
    Posted 11 months ago #

    Thanks Aditya!
    I added the necessary code to my child functions.php file, namely:

    add_theme_support( 'infinite-scroll', array(
        'container'  => 'content',
        'footer'     => 'page',
    ) );

    but sadly this didn't work. I also tried some of the other tips on the jetpack.me page, but other than getting jetpack to think infinite scroll was supported now, and giving me the associated options in my Reading settings, the function fails to operate.

    Has anyone else managed to get infinite scroll working on the theme?

  4. Leah
    Member
    Posted 10 months ago #

    Blaskans loop is in loop.php so you will need to add this to the "renderer" option. I think I used the Twenty Ten example in infinite scroll -support

    jetpack.me/support/infinite-scroll

    * Add theme support for infinity scroll
     */
    function twenty_ten_infinite_scroll_init() {
        add_theme_support( 'infinite-scroll', array(
            'container' => 'content',
            'render'    => 'twenty_ten_infinite_scroll_render',
            'footer'    => 'wrapper',
        ) );
    }
    add_action( 'init', 'twenty_ten_infinite_scroll_init' );
    
    /**
     * Set the code to be rendered on for calling posts,
     * hooked to template parts when possible.
     *
     * Note: must define a loop.
     */
    function twenty_ten_infinite_scroll_render() {
        get_template_part( 'loop' );
    }

Reply

You must log in to post.

About this Theme

About this Topic