Changing pagination below grid loop

Community Forums Forums Design Tips and Tricks Changing pagination below grid loop

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Jen Baumann 1 year, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7702

    tamjl
    Participant
    Post count: 12

    Hello -

    I’d like to remove the grid loop pagination below the grid loop on the home page and replace it with a simple button that links to my main blog page. I want my blog pages to have the normal pagination at the bottom.

    The site is http://lenski.com and is running the latest versions of WP, Genesis and the Minimum theme.

    How do I remove the pagination on the home page only and what code do I need to add in functions.php and/or home.php to allow me to place by button code in there? Thanks!

    #8017

    tamjl
    Participant
    Post count: 12

    bump

    #8039

    Jen Baumann
    Keymaster
    Post count: 424

    Hi Tammy.

    In home.php comment out this line by adding // in front of it
    [php]//add_action( ‘genesis_loop’, ‘minimum_grid_loop_helper’ );[/php]

    Add this to home.php
    [php]add_action( ‘genesis_before_content’, ‘custom_button’ );
    function custom_button() {
    echo ‘Your button html’;
    }[/php]

    You should be able to add whatever html you need for your button code inside the echo.


    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

    #8042

    Jen Baumann
    Keymaster
    Post count: 424

    Oops, I think I misunderstood.

    Use
    [php]remove_action( ‘genesis_after_endwhile’, ‘genesis_posts_nav’ );[/php]

    Then
    [php]add_action( ‘genesis_after_content’, ‘custom_button’ );
    function custom_button() {
    echo ‘Your button html’;
    }[/php]


    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

    #8108

    tamjl
    Participant
    Post count: 12

    Jen, your second one was right on the money…thanks so much!

    #8121

    Jen Baumann
    Keymaster
    Post count: 424

    Welcome!


    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

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

The topic ‘Changing pagination below grid loop’ is closed to new replies.