WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
Selectors on Gridly/Remplace 'view older posts' (3 posts)

  1. 75alex
    Member
    Posted 1 year ago #

    Hi everybody, i have two questions. First of all, is it possible to use this on theme gridly ? (my website)(and what are the selectors ?)
    And does it works on the "show latest posts" page or only in blog view ?
    Thanks in advance for the help ! :)

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. 75alex
    Member
    Posted 1 year ago #

    So i can't even make my post go back to 1st page here ? It's been a month and i'm still supposed to expect an answer without doing anything ? It's not as if i did that every day, it seems like one post a month is legitimate until i get an answer.

  3. sactyr
    Member
    Posted 1 year ago #

    I am using Infinite-Scroll in my site, which uses the Gridly theme, although it's not live yet.

    Behaviour: Masonry/Isotope

    Selectors:
    Content-selector: #post-area
    Navigation selector: #navigation
    Next selector: #navigation .view-older a:first
    Item selector: #post-area .post

    Now you need to change a code which I have listed below, so before you do anything else, backup your template.

    Go to your index.php file. Should be found here:
    /wp/wp-content/themes/gridly/index.php

    Now look up this code (last second line of the page):
    <?php next_posts_link('<p class="view-older">View Older Entries</p>') ?>

    Now change that to:
    <div id="navigation">
    <div class="view-older"><?php next_posts_link('View Older Entries'); ?></div>
    </div>

    [What I have done is I have introduced a new ID called navigation so that the selector recognises it]

    It only works on the main page. Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic