add paginator at top

Marketplace Forums Themes Cannyon add paginator at top

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  mythemes 3 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3801

    Naghost
    Member

    anyone can help me to add one paginator at top ??? thx for all

    #3829

    mythemes
    Keymaster

    replace the content from file

    cannyon/templates/loop.php

    with next

    <?php
    global $posts_total, $posts_index;
    
    $mythemes_layout = new mythemes_layout( );
    
    /* LEFT SIDEBAR */
    $mythemes_layout -> sidebar( 'left' );
    ?>
    
    <!-- CONTENT -->
    <section class="<?php echo $mythemes_layout -> classes(); ?> mythemes-classic">
    <?php
    
    /* TOP PAGINATION */
    get_template_part( 'templates/pagination' );
    
    /* CONTENT WRAPPER */
    if( have_posts() ){
    $posts_total = count( $wp_query -> posts );
    $posts_index = 0;
    while( have_posts() ){
    $posts_index++;
    the_post();
    get_template_part( 'templates/views/classic' );
    }
    }
    else{
    echo '<h3>' . __( 'No results found' , 'cannyon' ) . '</h3>';
    if( is_search() ){
    echo '<p>' . __( 'We apologize, but we couldn\'t find anything matching your search request. Please try to search for a different term or topic.' , 'cannyon' ) . '</p>';
    }
    else{
    echo '<p>' . __( 'We apologize but this page, post or resource does not exist or can not be found.' , 'cannyon' ) . '</p>';
    }
    }
    
    /* BOTTOM PAGINATION */
    get_template_part( 'templates/pagination' );
    ?>
    </section>
    
    <?php
    /* LEFT SIDEBAR */
    $mythemes_layout -> sidebar( 'right' );
    ?>
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

maysonverdell@mailxu.com brassard@mailxu.com