Footer pagination [Metro]

Community Forums Forums Design Tips and Tricks Footer pagination [Metro]

This topic is: not resolved

This topic contains 8 replies, has 3 voices, and was last updated by  ri001 11 months, 3 weeks ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #19789

    ismamartinez
    Participant
    Post count: 25

    Hi!

    I am trying to realize how to get rid of that “Older Posts” on the footer and Install a pagination plugin, I decided to go with this one:

    http://wordpress.org/extend/plugins/simple-pagination/

    The problem I am facing is that don’t know where to paste the code. They say:

    In your theme, open the theme files where you’d like pagination to be used. You need to find calls to next_posts_link() and previous_posts_link() and replace them.

    Usually this is the loop.php file.

    You would replace those two lines with this:
    <?php if(function_exists('wp_simple_pagination')) {
    wp_simple_pagination();
    } ?>

    So, could you guys let me know how to do it?

    I am not attached to this plugin, if there’s any other better just let me know.

    I am using the great “Metro” theme and you can see it in action at http://nbatips.com

    Thanks!

    #19794

    sanjeev
    Participant
    Post count: 34

    I hope you know that you can get the numbered pagination by changing the settings under theme settings.

    Theme Settings — > Content Archive — > Post Navigation technique

    Change it to numeric to get the numbered paging system and it will be in sync with theme colors…

    if you still want to do it, let me know..I will find the code for you…


    Meet me at: Make Web World

    #19816

    ismamartinez
    Participant
    Post count: 25

    That’s perfect! Can you please let me know how to make it wider? I want it to go the whole post area and show more numbers.

    Thanks!

    #20238

    sanjeev
    Participant
    Post count: 34

    That will require some custom coding to modify the layout…..It will auto stretch based on where you are, like if you click on 3 you will see 1-5 pages as text….to spread it to complete page, I don’t have an idea, will try to find some code for it…..


    Meet me at: Make Web World

    #20324

    ismamartinez
    Participant
    Post count: 25

    Gotcha.

    Then would you be so kind to tell me how to do that thing that I was asking when I started the thread.

    http://www.studiopress.com/forums/topic/footer-pagination-metro/#post-19789

    Thanks!

    #20488

    sanjeev
    Participant
    Post count: 34

    I have not tested the code but I think you can use the hook genesis_after_endwhile, use the below code to remove the genesis default pagination:

    remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' );

    After that you can add a new function to add your plugin

    add_action( 'genesis_after_endwhile', 'custom_posts_nav' );
    function custom_posts_nav() {
    if(function_exists('wp_simple_pagination')) {
    wp_simple_pagination();
    } }

    I am on road for next two days, if this doesn’t work by then, I will provide the tested code…


    Meet me at: Make Web World

    #20650

    ismamartinez
    Participant
    Post count: 25

    Thanks, what happens now is that not even the theme pagination is shown. Don’t know if it’s because I started using widgets on the home page or because I am using a membership plugin.

    However, I tried installing the Genesis Simple Hooks and pasting the “add_action…” code you gave me on the text box but doesn’t work. Either checking or unchecking the “Unhook…” button.

    #21896

    sanjeev
    Participant
    Post count: 34

    You will not get pagination if you are using widgets on the home page, you can check it at your category or archive page to see if its working…


    Meet me at: Make Web World

    #38702

    ri001
    Participant
    Post count: 10

    You will not get pagination if you are using widgets on the home page, you can check it at your category or archive page to see if its working…

    Is there any workaround to get pagination while using the widgets on the homepage?

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

You must be logged in to reply to this topic.