GeoDirectory Support Forums Forums GeoDirectory Core Plugin General Discussion Is there a way to show at the top of the search results that more pages exist.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #408735

    rigots
    Expired Member
    Post count: 182

    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: 985
    #408789

    Alex Rollin
    Moderator
    Post count: 9288
    #409261

    rigots
    Expired Member
    Post count: 182

    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: 9288

    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
    Expired Member
    Post count: 182

    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: 9288

    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
    Expired Member
    Post count: 182

    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: 9288
    This reply has been marked as private.
    #409712

    rigots
    Expired Member
    Post count: 182
    This reply has been marked as private.
    #409804

    Alex Rollin
    Moderator
    Post count: 9288

    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)

The topic ‘Is there a way to show at the top of the search results that more pages exist.’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.

  • How to add a new support ticket

    To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on GeoDirectory Core Plugin support and click on the "New Post Button".
  • Support Policy

    Please read the support policy before starting to use the forum.
  • Are you a developer?

    Make Money with GD Jobs

    Get listed in the GeoDirectory Experts Directory. There may be a new client waiting for your services.
  • Looking for a GD developer?

    We do not provide customization services, but feel free to check out the GeoDirectory Experts Directory, there you'll find several freelance GD experts ready to start working with you.