Is there a way to show at the top of the search results that more pages exist.

This topic contains 10 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #408735

    rigots
    Lifetime Member
    Post count: 275

    Hi, when select a category and city and then click on search, I get taken to the search page. I have set my page to display 20 listings at a times so the can load up in a reasonable time, the problem with this is that only 20 pins are shown it the map, so people may think there are only 20 listing, but as they scroll down you see the boxes labeled 1, 2, 3, 4, 5 with an arrow next to it see the next 20.

    Is there a way to show the same navigation as in the buttons on the page at the top of the page?
    I want users to know right away that there are more than 20 listings without having to scroll down all the way to see that there are option to see more. I want those options to see more to also appear on the top of the page, how do I do that?

    Thank you.

    #408736

    Joy
    Buyer
    Post count: 1076
    #408789

    Alex Rollin
    Moderator
    Post count: 27815
    #409261

    rigots
    Lifetime Member
    Post count: 275

    I was told before that I should not be modifying any child themes because that could change in the future and my changes would get reset. So instead I was told to use a “snippets” widget to make any changes.

    So I used “Snippets” to add and activate the following:
    add_action(‘geodir_before_listing’, ‘geodir_pagination’,100);

    But, that did not work for me.
    I wish they added an option in the future to have pagination at the top or bottom, both top and bottom.

    Can I add this command from “Snippets” if so, do I need to modify the command to be added from Snippets?
    If not, I will have to go figure out which is my child theme. I use “Directory Starter” and “Supreme Directory”, I don’t know if I have a child theme were I can add this code. Any advice?

    Regards,
    Rigo

    #409267

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Adding as a snippet is the way to do. You will also need to turn on the setting now, too:
    GD>Design>Search>Show advanced pagination details

    #409270

    rigots
    Lifetime Member
    Post count: 275

    Hi Alex, what do you mean by “You will also need to turn on the setting now, too?”.
    I did go ‘GD>Design>Search>Show advanced pagination details’ and there is a pull down menu next to it.
    The selection choices are: Never Display, After Pagination and Before Pagination.
    I tried the three of them, the only thing I see when I enable “After Pagination” and “Before pagination” is that I see a text that says “Showing Services 1-20 of 96”, but it does not give me the option at the top of the page to select the next set of results and this is what I am looking to have at the top of the page, not just at the bottom of the page.

    Any advice?

    #409538

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    You can use the Code Snippets plugin to add the missing snippet to your site.

    https://wpgeodirectory.com/docs/useful-plugins/#snippets

    The snippet you want to add is:

    
    
    
    
    add_action('geodir_before_listing', 'geodir_pagination',100);
    

    And then leave the advanced pagination setting selected.

    #409562

    rigots
    Lifetime Member
    Post count: 275

    Hi Alex,
    I have already added that code snippet before. See attached screen shot below.

    I don’t understand what you mean by leaving the advanced pagination setting selected.
    As I said before, there are three selection for advanced pagination, which of the three do I select? I have tried the three option without success, see attached image, I selected “before pagination” and it still does not work.

    Any other suggestions?

    Thank you.

    #409707

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #409712

    rigots
    Lifetime Member
    Post count: 275
    This reply has been marked as private.
    #409804

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    To reveal Advanced Pagination before the search results, there are three steps:

    1. Go to GD > Design > Search > Show advanced pagination details -> Before Pagination

    2. Add PHP Snippet with the Code Snippets plugin : https://wpgeodirectory.com/docs/useful-plugins/#snippets

    
    
    
    add_action('geodir_before_listing', 'geodir_pagination',100);
    

    3. Go to GD > Design > Scripts > Custo CSS and Add the following CSS to reveal the pagination

    
    
    
    .sd .geodir-common .clearfix .Navi {
        display: inline !important;
    }
    

    From our FAQ: https://wpgeodirectory.com/docs/faqs/reveal-advanced-pagination-before-search-results/

    You can see the results on your search page now

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

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

Open Support Ticket