-
Author
-
February 22, 2017 at 21:29 #153928artwandParticipant
Hi there,
I was wonder if it’s possible to switch around Ajax results so if I select in the settings “forums” only then on the ajax result I would see first results from the forums?
Now even if there is no word I was searching for in posts, all posts will display on top of the list which is confusing because this word is not existing there
In another words is it possible not to show posts in the results if the word haven’t been found?
Please see the screenshot
Thanks!
Attachments:
You must be logged in to view attached files.February 23, 2017 at 15:13 #153979LauraModeratorHello, 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 🙂
February 23, 2017 at 15:39 #153994artwandParticipantThank You Laura!
In addition to this… I was wonder if it’s possible to have the same preloader (as used in grids) in the search field? (css hack or through functions?)
[attachment file=153995]
Attachments:
You must be logged in to view attached files.February 23, 2017 at 17:27 #154023RaduModeratorHi,
just add the next code function from pastebin to wp-content/themes/kleo-child/functions.php
http://pastebin.com/raw/sRE3X40N
Cheeers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 23, 2017 at 17:50 #154028RaduModeratorHi,
1. IT’s already it behaves like that I’m using ajax search only
2. There is no quick solution to implement this.
For any custom development and implementations you should hire a developer
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 23, 2017 at 18:05 #154034artwandParticipant1) It’s not showing on my form (I pasted your code into the child functions)
[attachment file=154036]
2) Ok, no problem… can you at least guide me to the file where the code is refering to the preloader?
Thanks,
P.Attachments:
You must be logged in to view attached files.February 23, 2017 at 18:33 #154043RaduModerator1. I have also that code in my functions PHP and it’s displayed and on your search form if I search for different thigs results are the same.
Maybe you have other things in child theme that can cause this, also de-activate all plugins except Visual Composer and K-elemets to check how it behaves
2. In this function it;s the loader for the search http://pastebin.com/raw/mJySs4PA you should add that into child theme functions.php
This is the div that generates the loader
COPY CODE<span class="kleo-ajax-search-loading"><i class="icon-spin6 animate-spin"></i></span>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 23, 2017 at 18:47 #154049artwandParticipant1. bbPress 2.5.15 is the problem, I have deactivated this plugin and the search form works as it should but then I lost the forums 🙁
2. Thanks Mate for the instructions!
February 24, 2017 at 14:13 #154090artwandParticipantHi Radu,
Have you had a chance to investigate this bbpress issue?I really need this to be fixed otherwise I will not be able to have forums on the site which is crucial.
Thanks!
February 24, 2017 at 18:03 #154113RaduModeratorHi,
I think there it’s an isolated problem, not a general one caused by your changes in the child theme or by using another plugin that can interfere with the actual setup.
Try to leave bbpress,visual composer,buddypress and k-elements plugins activated and de-activate the rest and also the child theme, then you will see it’s no problem with bbpress or with kleo and bbpress
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 24, 2017 at 19:14 #154125artwandParticipantHi,
It took me some time but I found the real problemI was following your suggestions but didn’t help then I realised that on the home page the search form shows the “not found” text
So the difference between them two was that on the home page I have selected all areas of search [search context] (members, groups, posts, pages, forums and portfolio) but on the page where the search should “search” only in forums I have selected “forums” only so then the “not found” text will not display
I have tested by selecting for example “posts” only and it works… it doesn’t work properly ONLY when we select “forums” and keep the other options unselected
[attachment file=”Screen Shot 2017-02-24 at 17.03.23.png”]
February 27, 2017 at 20:08 #154288RaduModeratorHi,
The screenshot missing,
I cannot reproduce the issue with no found error when searching in bbpress context.
From what I see the search in forums works.. take a look
Can you confirm if it’s related to diacritics or Cyrillic characters?
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 27, 2017 at 20:49 #154294artwandParticipantIt works because I had to select everything (see the screenshot)
[attachment file=154295]
But the problem is that the NOT FOUND text will not appear in the search results when I select FORUMS only
[attachment file=154296]
Try to search for a random text now and you will notice that search results will show the latest posts only but it should display the message about no results found
As I mentioned before it’s not related to what I have in the child functions because it’s obvious now that it doesn’t show the “not found” message ONLY when we select “Forums” only
[attachment file=154297]
btw.
there is nothing in the child functionsAttachments:
You must be logged in to view attached files.March 1, 2017 at 18:40 #154514RaduModeratorHi,
Please replace this file content : /wp-content/themes/kleo/lib/theme-functions.php
with this one : http://pastebin.com/raw/buH1BF2eThis will fix the empty response on searching on forums context
Also this will be included on next theme update
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 1, 2017 at 20:12 #154533RaduModeratorHi,
That’s wired the same file it works for me, there original patch was applied
Can you try again, please ? Can you de-activate all plugins and chidl theme and try again
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 1, 2017 at 21:19 #154539artwandParticipantI have deactivated all plugins + child and tried again but didn’t help
When I deactivated all plugins then the error gone but unfortunately with active plugins still with the same error
March 2, 2017 at 15:45 #154595RaduModeratorYou should enable plugins back one by one then CHECK every plugin activation to identify what causes that
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.