Pagination

This topic contains 3 replies, has 3 voices, and was last updated by  Robert Strobel 6 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #412849

    Robert Strobel
    Expired Member
    Post count: 54

    Hi,

    On listview template we have modified, and we do not want to show the pagination links underneath content. I can’t see a place to remove it from the template, so I wondered is there a hook or action I can remove to stop them from being printed to the page?

    I know we can hide them in CSS, but we prefer to stop them from printing at all.

    Thanks!!

    #412894

    Kor
    Moderator
    Post count: 16516

    Hi Robert,

    There are no options for this and an easy way to achieve this is through custom CSS. But I’ll forward this to a developer for a second opinion.

    Thanks!

    #412902

    Kiran
    Moderator
    Post count: 7069

    Hi Robert,

    Use following code snippet to remove pagination from GD pages.

    
    
    // Remove GD pagination
    function _gd_custom_remove_pagination() {
        remove_action('geodir_listings_content_inside', 'geodir_pagination', 20);
    	remove_action('geodir_author_content_inside', 'geodir_pagination', 20);
    	remove_action('geodir_search_content_inside', 'geodir_pagination', 20);
    	remove_action('geodir_home_content_inside', 'geodir_pagination', 20);
    }
    add_filter( 'template_redirect', '_gd_custom_remove_pagination', 10 );

    Thanks,
    Kiran

    #412942

    Robert Strobel
    Expired Member
    Post count: 54

    Thanks a lot Kiran. Much appreciated.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount