WordPress.org

Ready to get started?Download WordPress

Forums

WP-Paginate
what code in loop.php to replace? (3 posts)

  1. RenoJohn
    Member
    Posted 3 years ago #

    I realize this is a newbie question and apologize.

    Just moved to the twenty-ten theme and I'm not sure which code to replace in the loop.php file.

    I know I need to replace with this:
    --------------
    <?php if(function_exists('wp_paginate')) {
    wp_paginate();
    } ?>
    ------------

    But what specifically am I replacing?

    Thanks much!

    http://wordpress.org/extend/plugins/wp-paginate/

  2. RenoJohn
    Member
    Posted 3 years ago #

    OK I think I figured it out. I replaced:
    ---------
    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
    ----------

    in two places in the loop.php file.

    Please let me know if I did anything that may cause problems. Also if there is an easy way to center this for the viewer that would be awesome.

    blog here:
    http://www.graceaustin.com

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    edit style.css and find:

    /* =Navigation
    -------------------------------------------------------------- */
    
    .navigation {
    	color: #888;
    	font-size: 12px;
    	line-height: 18px;
    	overflow: hidden;
    }

    for instance, add
    text-align: center;
    to this style

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic