Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1200

    Hi I would like to change the pagination at the bottom of the page…currently its says 1,2,3 then next, then end..

    How do we change it so that the pagination shows ALL boxes..I’m specifically interested in doing this on the category pages….it would greatly increase the SEO benefit as search engines would be able to find all posts easier.

    I think I’m dealing with this code in index.php

    <?php

    if($smallsized > 2): echo ‘</div>’; $smallsized = 1; endif;

    endif; endwhile;

    if($smallsized == 2):echo ‘</div>’; endif;

    kriesi_pagination($additional_loop->query);

    else:

    echo’<div class=”entry”>’;

    echo’<h2>’.__(‘Nothing Found’,’newscast’).’</h2>’;

    echo’<p>’.__(‘Sorry, no posts matched your criteria’,’newscast’).’</p>’;

    echo’</div>’;

    endif;

    // end content: ?>

    Any help appreciated! :)

    #34402

    Open the file pagination.php located under framework/helper_functions/pagination.php.

    There you’ll find following line:

    $range = 2; // only edit this if you want to show more page-links

    change the value of 2 to any value you like – (i.e. 10, 20, etc.)

    The Dude

    #34403

    Great! Is there any way I could have this just on the category pages alone?

    And not the home page?

    #34404

    If you want to exclude just the homepage replace:

    $range = 2; // only edit this if you want to show more page-links

    with:

    if (is_front_page())
    {
    $range = 2; // only edit this if you want to show more page-links
    }
    else
    {
    $range = 2; // fill in any value you like
    }

    The Dude

    #34405

    Hi great! I dont want any pagination on the homepage at all.the script above still shows ’1′

    I just want to show all the pagination on the categories.

    How can I do this?

    #34406

    Just delete following line in index.php:

    kriesi_pagination($additional_loop->max_num_pages);

    The Dude

    #34407

    Great thats solved everything! Thanks for your help!

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Pagination’ is closed to new replies.