-
Author
-
April 3, 2017 at 23:02 #157523korymParticipant
Hello, All. I’m successfully receiving search results from my various CPTs when typing in a keyword in the Ajax search form, however, when I click “view all results,” I don’t get any results; just this link:
However, from that page, if I click the search icon, I successfully retrieve results:
https://www.cheersva.org/?s=cider
I would prefer keeping the CPTs enabled as I like how the results dynamically appear under the search field. Can you tell me if there’s a way to disable the CPTs from the “view all results” link at the bottom?
Thanks, in advance!
Regards,
Kory
April 4, 2017 at 22:14 #157616LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 7, 2017 at 16:25 #157903RaduModeratorYou want to hide the button “view all results” ? or how to disable CPT from the button? You mean to have default search, without CPT’s in it ?
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 7, 2017 at 17:02 #157906korymParticipantHi, Radu. I’d actually prefer to keep using the CPTs in the search. If I can’t use both the CPTs and have the “view all results” button view results instead of blank results, is there a way I can hide that button via a CSS entry?
Thanks much!
Regards,
KoryApril 10, 2017 at 18:54 #158118RaduModeratorHi
This it’s the css for hiding view all button
COPY CODE#header .kleo_ajax_results a.ajax_view_all { display: none; }
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE : Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 15, 2017 at 18:13 #158597korymParticipantWorks great, Radu, thanks much! I appreciate it! Please feel free to mark as resolved.
Regards,
KoryApril 18, 2017 at 19:11 #158832RaduModeratorGreat
You’re welcomeCheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 19, 2017 at 22:44 #158996korymParticipantHello, Radu. My apologies for opening this back up, however, I’m also using a search field on the home page via a Visual Composer insert. I attempted to attach an extra class name to that VC insert called “homepageSearch.” Over in the quick CSS, I attempted to add the following code:
COPY CODE/* This hides the "view all results" from the homepage search field */ #homepageSearch .kleo_ajax_results a.ajax_view_all { display: none; }
I cleared the cache and the “view all results” still show up on that field.
Can you tell me what I might be doing wrong?
Thanks much.
Regards,
KoryApril 21, 2017 at 17:20 #159252RaduModeratorHi,
Try with important
display: none !important;
Or you can use this rule
.kleo_ajax_results a.ajax_view_all {
display: none !important;
}And view all button will be hidden site-wide
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 21, 2017 at 17:35 #159257korymParticipantHmmmmm, I tried replacing the former CSS rule with the following and it’s not showing up in the header menu as it previously wasn’t but still shows up on the site’s homepage:
COPY CODE/* This hides the "view all results" from the search results */ .kleo_ajax_results a.ajax_view_all { display: none !important; }
I also cleared both my browser cache and server cache to make sure I’m receiving the latest page.
Any other suggestions, Radu?
Thanks much.
Regards,
KoryApril 24, 2017 at 15:53 #159430korymParticipantHi, Radu. I checked my site this morning and it looked like that change did, in fact, successfully work. I’m no longer seeing “view all results” on either search fields.
I’ll go ahead and mark this as resolved.
Thanks much!
Regards,
KoryApril 25, 2017 at 17:18 #159540RaduModeratorGreat
You’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.