Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

sactyr on "gridly theme - making it one scrolling page"

$
0
0

Krhd,

Install this plugin called "Infinite Scroll"

In Settings:

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.


Viewing all articles
Browse latest Browse all 13924

Trending Articles