How to hide a CPT from dropdown box on GD start page

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

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

Open Support Ticket
  • Author
    Posts
  • #483795

    Matthias Schmieder
    Full Member
    Post count: 94

    Hello together,
    if you go to https://happy-pet-club.de/branchenbuch2/ you see a GD start page. In the drop down box for the CPTs I would like to delete the entry “Tierärzte”. I only would like to show the rest. How can I do this?
    Is it possible to have an “All” entry in this drop down box to search accross all the CPTs?

    Thank you very much for your feedback.
    Kind regards
    Georg Dick

    #483841

    Alex Rollin
    Moderator
    Post count: 27815

    There isn’t a setting for that, sorry.

    However, if there are no categories or listings it will disappear automatically.

    #483842

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #484460

    Matthias Schmieder
    Full Member
    Post count: 94
    This reply has been marked as private.
    #484487

    Kor
    Moderator
    Post count: 16516

    Hi Matthias,

    Thanks for your reply. You can remove it using the custom CSS code below. However, adding an “All” entry would require customization.

    .gd-search-input-wrapper.gd-search-field-cpt .search_by_post option:nth-child(1){display:none;}
    #484692

    Matthias Schmieder
    Full Member
    Post count: 94

    Thank you Kor, it works. The “All” entry is possible by customization? Can you gibe me a hint where to find it? Thank you.
    Kind regards.
    Georg

    #484755

    Kor
    Moderator
    Post count: 16516

    Hi Georg,

    Thanks for your reply. It’s a bit complex so I’m just going to forward this to a developer for a second opinion.

    #485193

    Matthias Schmieder
    Full Member
    Post count: 94
    This reply has been marked as private.
    #485242

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    GD Search will only search one CPT at a time.

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount