Official support hours: from 9 AM — 6 PM Monday to Friday (GMT +2).
The support staff may not reply on technical inquiries on weekends; all requests will be answered necessarily during working days. Reply time: depending on the complexity of your issue, the answer can be provided between a few hours up to 48 hours. In the particular instances we will notify you if extra time will be required to solve the issue.

×

Notice

The forum is in read only mode.

Hide search form when there are search results found

5 years 3 weeks ago #844 by Astrid
Template is not hiding search form. Could you have a look at this please?
5 years 3 weeks ago #845 by Eugene S.
Hi Astrid,
I looked at this and could not find an issue.
Screenshots are attached.
Can you provide a screenshot or describe how to reproduce this action step-by-step, please?

Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
Attachments:
5 years 3 weeks ago #846 by Astrid
Hi Eugene,

It's your second screenshot. If you check with Crypsis, searchbox is hidden when search results are shown. It is verry annoying to scroll down the entire page to find the first search result.
Example from Kunena forum:
www.kunena.org/forum/search?query=joomla...te=all&childforums=1
Example from KGlorious:
demo.roundtheme.com/kunena5/glorious/ind...te=all&childforums=1
5 years 3 weeks ago #847 by Eugene S.
Ah, now it is clear! We just used different technical terms. I searched small Searchbox (field), but you talked about search form...
Astrid, thank you for the recommendation. We will consider it.

Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review: bit.ly/2cIg8pF
Thanks!
5 years 3 weeks ago #848 by Astrid
And I thought it was clear enough by using the text from search.js ;)
/* Hide search form when there are search results found */
	if ( $('#kunena_search_results').is(':visible') ) {
		$('#search').collapse("hide");

		$('[data-target="#search"]').addClass("collapsed");
	}
Only difference I can see with Crypsis is the last line that is added in KGlorious. But deleting it, doesn't help.
5 years 3 weeks ago #857 by Dmitry
Hi Astrid.

We use a different layout. Change #kunena_search_results to #kunena_search_results_0.

Dmitry
Moderators: Eugene S.

Partners