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 7 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 8, 2017 at 12:38 am #408735
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.
December 8, 2017 at 1:17 am #408736Take a look at this thread: https://wpgeodirectory.com/support/topic/display-of-advanced-pagination-details/#post-121787
December 8, 2017 at 1:44 pm #408789Hello!
How does the solution at that link work for you?
https://wpgeodirectory.com/support/topic/display-of-advanced-pagination-details/#post-121787
December 12, 2017 at 6:54 pm #409261I 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,
RigoDecember 12, 2017 at 7:05 pm #409267Hello!
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 detailsDecember 12, 2017 at 7:21 pm #409270Hi 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?
December 14, 2017 at 1:35 pm #409538Hello!
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.
December 14, 2017 at 5:25 pm #409562Hi 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.
December 15, 2017 at 5:10 pm #409707This reply has been marked as private.December 15, 2017 at 5:36 pm #409712This reply has been marked as private.December 17, 2017 at 12:10 pm #409804Hello!
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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket