Search page
This topic contains 36 replies, has 4 voices, and was last updated by Alex Rollin 5 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 26, 2020 at 11:08 am #542637
Hello,
I have several directories and I want to show a different thing depending on each directory, so I have different pages for each one.
The problem is that when I search something in any of them, it always redirect me to the search page.
Is it possible to redirect to another page depending on the post type?Thanks!
April 26, 2020 at 11:40 am #542642Search results can only be displayed on the Search results page, and you only can have one Search results page.
ThanksApril 26, 2020 at 4:43 pm #542658Hello,
And there is no way to see the results of the search in the same page than the listing? Maybe, by any additional code?
Thanks!
April 26, 2020 at 6:04 pm #542666Hi blumbre,
Thanks for your reply. Sorry, this can’t be done without customization. Search results will always display on the “Search Archive Template” as explained here https://wpgeodirectory.com/docs-v2/templates/search/
May 4, 2020 at 5:10 pm #543368Hi!
And it is possible to disable the dropbox of the different post types to have always the one that is selected in the origin page?
Can you tell me the name to disable in css?
Thanks!!
May 5, 2020 at 3:37 pm #543381Can you send a screenshot of what you mean, and a URL where we can see it?
May 5, 2020 at 5:14 pm #543389I send you the screenshot, the field that I want to disable for not to extend is the post type.
Does it help to know the name of the field in the css?May 5, 2020 at 5:47 pm #543391Ah, yes, there is CSS here to hide that:
/*GDV2 Custom CSS – Hide the Custom Post Type CPT Select Field in all GD Search Bars */ .gd-search-input-wrapper.gd-search-field-cpt { display: none; }https://wpgeodirectory.com/docs-v2/faq/common-examples/
If you run into anything else please post a new topic here https://wpgeodirectory.com/support/
May 5, 2020 at 6:03 pm #543392It hides all the search bar except for the text to search, but no options available.
I think that I need something like this:
.gd-search-input-wrapper.gd-search-field-cpt.gd-search-field-taxonomy.gd-search-field-categories {
display: none;
}but not for categories, but for the post types.
Which is the word that I must use? because I can’t find it in the link.
I understand that the post type is needed for the search options, but I don’t want to hide it, I just want to disable it.May 7, 2020 at 6:09 pm #543407Please share a link to the page so we can check it out.
May 7, 2020 at 10:17 pm #543416My site is not published yet, I just need the css code belonging to the field in the photo and I can manage. It is related to the post_type when there are some post types differents.
Can you share with me please?Thanks!
May 8, 2020 at 10:16 am #543419I have already provided our best offer for this. Without looking at the page there isn’t much else we can do.
When you publish the page please make a new ticket so we can take a look.
May 8, 2020 at 6:28 pm #543420This reply has been marked as private.May 9, 2020 at 4:08 pm #543421Ah, I see.
No, it isn’t possible to hide that without hiding the other fields coming from Advanced Search for that CPT.
May 10, 2020 at 9:04 am #543422No, but I don’t want to hide it, I want to avoid to unfold the dropbox for not to see other post_types in that page.
I mean, when you select another option in the post_type, you have to access to that field to can paint the correct fields in the search…I would like to know the name that is been using for that field so that I can disable it….
Have I explained me?
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket