Search page

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

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

Open Support Ticket
  • Author
    Posts
  • #542637

    blumbre
    Free User
    Post count: 61

    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!

    #542642

    Guust
    Moderator
    Post count: 29970

    Search results can only be displayed on the Search results page, and you only can have one Search results page.
    Thanks

    #542658

    blumbre
    Free User
    Post count: 61

    Hello,

    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!

    #542666

    Kor
    Moderator
    Post count: 16516

    Hi 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/

    #543368

    blumbre
    Free User
    Post count: 61

    Hi!

    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!!

    #543381

    Alex Rollin
    Moderator
    Post count: 27815

    Can you send a screenshot of what you mean, and a URL where we can see it?

    #543389

    blumbre
    Free User
    Post count: 61

    I 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?

    #543391

    Alex Rollin
    Moderator
    Post count: 27815

    Ah, 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/

    #543392

    blumbre
    Free User
    Post count: 61

    It 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.

    #543407

    Alex Rollin
    Moderator
    Post count: 27815

    Please share a link to the page so we can check it out.

    #543416

    blumbre
    Free User
    Post count: 61

    My 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!

    #543419

    Alex Rollin
    Moderator
    Post count: 27815

    I 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.

    #543420

    blumbre
    Free User
    Post count: 61
    This reply has been marked as private.
    #543421

    Alex Rollin
    Moderator
    Post count: 27815

    Ah, I see.

    No, it isn’t possible to hide that without hiding the other fields coming from Advanced Search for that CPT.

    #543422

    blumbre
    Free User
    Post count: 61

    No, 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

Viewing 15 posts - 1 through 15 (of 37 total)

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

Open Support Ticket