Customize CPT Selector

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

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

Open Support Ticket
  • Author
    Posts
  • #387797

    Tomas Canale
    Expired Member
    Post count: 9

    Hi there! thanks for this amazing framework!

    Some users might not choose the correct option or avoid the to select one for what they are searching. In order to fix that, I would like to either avoid the CPT selector or add an “ALL” option, so the users can search in all the categories at once.

    Is any of these solutions possible?

    Thanks!

    #387833

    Kor
    Moderator
    Post count: 16516

    Hi tomas,

    You can remove the CPT selector using the custom CSS code below. Just insert it into GD > Design > Scripts > Custom Style CSS

    
    
    .gd-search-input-wrapper.gd-search-field-cpt {
        display: none!important;
    }
    #387841

    Tomas Canale
    Expired Member
    Post count: 9

    Alright, but if the users search it would search only in the first CPT. Am I wrong?

    Is there any option to search in all the post types?

    #387885

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    it is not possible to search all CPT at once. They all have their data stored in different DB tables and joining them would make search so slow that would be unusable.

    Thanks

    #387897

    Tomas Canale
    Expired Member
    Post count: 9

    No worries! Thanks Paolo and Kor for your help!

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

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

Open Support Ticket