AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] How to do 'posts in last 24 hours' search and return results without search input fields/forms?

6 Posts
2 Users
3 Reactions
3,875 Views
Posts: 119
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@nando4)
Estimable Member
Joined: 9 years ago
[#4384]

I have a sidebar widget that searches and then shows forum posts within the last 24 hours.

To maximize screen real estate, I'd like to remove all the search input fields/forms it shows so can show the search results instead. Those input fields are not necessary since we know our search parameters.

Can it be done easily? If so, how?

 

 


5 Replies
Robert
Posts: 10736
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago

There is no option to remove them, the only way is CSS. Use this CSS:

#wpforo #wpforo-wrap .wpforo-search-wrap .wpf-search-bar .wpforo-tr:first-child .wpforo-td{display:none;}

Or this:

#wpforo #wpforo-wrap .wpforo-search-wrap .wpf-search-bar .wpforo-tr:first-child .wpforo-td{display:none;}
#wpforo #wpforo-wrap .wpforo-search-wrap .wpf-search-bar .wpfrtd {border-bottom: 1px dotted #ffffff;display: none;} 
#wpforo #wpforo-wrap .wpforo-search-wrap .wpf-search-bar .wpforo-td .wpfs{width:50%; background:#fff;}

Posts: 119
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@nando4)
Estimable Member
Joined: 9 years ago

Thank you for the reply. I confirm those CSS changes do the job but they also mean any searches where a user clicks "?" and wants to search specifics are then missing those input fields.

Is there anyway I can bind that CSS code to apply only to my 'posts in last 24 hours' search?


Robert
Posts: 10736
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago

I'm sorry but there is no way.


Posts: 119
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@nando4)
Estimable Member
Joined: 9 years ago

Alright then. How about is there an anchor I can place as the search URL's end (eg:[search]#results) so that the page focus is on the search results, skipping the input fields?


Page 1 / 2
Share: