Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Lester Chan

    (@gamerz)

    I will not be able to help you because it is related to the theme and styling. Your best option is to contact your theme developer or hire a developer to customize the styles to your theme.

    Thread Starter jsa

    (@jobsaddress)

    can u plz tell me how to configure pagenavi plugin in bootstrap basic theme i tried a lot but did not get result .. is there any simple way to do it?

    Hello @jsa

    Can you tell me where the problem had occur?

    Is it paginate in the list posts (index, category, tag page) or inside content?

    And hello the plugin author.

    I found that the theme comes with WordPress use the_posts_pagination() function in their list posts page such as index.php file.

    Inside this function there is not much hooks or filters or even array attributes to let the theme display pagination in Bootstrap 3 style. So, I have to create new pagination function for use in list posts.

    Do you have any special hooks to check that I should use your pagination function or my.
    Example:

    if (add_filter('wp_pagenavi_use_plugin_pagination', false) === true) {
        // use pagenavi plguin
    } else {
        // use theme's pagination function
    }

    Thank you.

    • This reply was modified 7 years, 3 months ago by vee.
    • This reply was modified 7 years, 3 months ago by vee.
    Thread Starter jsa

    (@jobsaddress)

    thanks for reply.
    actually i am new to bootstrap theme so cant find that code to put pagination function i try to find in index.php and function.php but didn’t find the area to put pagination code.
    i want to show pagination on blog post and pages.
    plz help me in this regard..

    I think you means pagination in the page that listing many posts, not pagination in the content or single post.

    Then there are 4 template files that use bootstrapBasicPagination() function.
    1. archive.php
    2. index.php
    3. search.php
    4. single.php

    If you want to modify BootstrapBasic and make it your own theme (parent theme) then open these files, find bootstrapBasicPagination() function and replace with the code of pagenavi plugin.

    If you want to use child theme to override this theme then copy 4 of these files and do the same thing (replace bootstrapBasicPagination() function with the code of paginavi plugin).

    Thread Starter jsa

    (@jobsaddress)

    yes i find bootstrapBasicPagination() but dont know from to start putting pagenavi plugin code in these files?

    <?php bootstrapBasicPagination(); ?>
    <?php } else { ?>
    <?php get_template_part(‘no-results’, ‘archive’); ?>
    <?php } //endif; ?>

    this line is replace by which code?

    I’m not sure.
    Try to replace just bootstrapBasicPagination() function. No other line just that function, no else no more.

    I’m not sure what to replace maybe wp_pagenavi().
    As I see in https://www.ads-software.com/plugins/wp-pagenavi/ page.
    Let’s start replace with wp_pagenavi() if that is not work or not what you want then try wp_pagenavi( array( 'type' => 'multipart' ) ); function.

    Thread Starter jsa

    (@jobsaddress)

    can u plz guide me in detail.

    I’m already told you everything and help you as much as I can. It is not too hard to open these files and replace the function as I said. If first is not work then try the second.

    Thread Starter jsa

    (@jobsaddress)

    Thanks vee
    i am trying it..

    Thread Starter jsa

    (@jobsaddress)

    i did not find bootstrapbasicpagination() in single.php?

    Thread Starter jsa

    (@jobsaddress)

    <?php
    /**
    * Template for displaying pages
    *
    * @package bootstrap-basic
    */

    get_header();

    /**
    * determine main column size from actived sidebar
    */
    $main_column_size = bootstrapBasicGetMainColumnSize();
    ?>
    <?php get_sidebar(‘left’); ?>
    <div class=”col-md-<?php echo $main_column_size; ?> content-area” id=”main-column”>
    <main id=”main” class=”site-main” role=”main”>
    <?php
    while (have_posts()) {
    the_post();

    get_template_part(‘content’, ‘page’);

    echo “\n\n”;

    // If comments are open or we have at least one comment, load up the comment template
    if (comments_open() || ‘0’ != get_comments_number()) {
    comments_template();
    }

    echo “\n\n”;

    } //endwhile;
    ?>
    </main>
    </div>
    <?php get_sidebar(‘right’); ?>
    <?php get_footer(); ?>

    If you did not find you can skip it.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Navigation Not Working in bootstrap theme?’ is closed to new replies.