[Resolved] Viewing search bar input and results on new page
This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I want to give users the option to either search posts by content or browse by category and/or sub-category. hidden link
Users enter their search criteria then click “Go”(or ‘submit’) and be taken to a new page “/results” to be shown the results. hidden link
On the results page, it should list posts as programmed in the template. I also want to add some filter options here (I haven’t attempted this yet)
Right now, the issues I am having are:
1. When users enter text in search bar, the text isn’t showing. It’s as if it’s not registering.
2. When users click “Go” they aren’t taken to the results page.
Sometimes when I log into wp-admin it doesn't take me to the dashboard. The screen just kind of freezes.
But as long as I've entered the credentials, when I next go to hidden link I'm logged in as admin, and can access dashboard from there.
Does this help?
It seems the filter function isn't quite working right - it displays all results. Is there a way to fix this?
And how can I show both the search bar and filter at the top of the results page?
With CSS, if you can share any hints or tips on how to:
- make default "search all listings" text the same font family, font size and font color as the dropdowns
- bring "Go" search buttons inline with the search bar and bottom filter
I understand if this last CSS bit might be outside your remit, so no worries if you're unable to help with this. Worth a shot!
Thanks Shane, the search is working perfectly now.
Is there a way to make the search and filter fonts same family, size and color? Perhaps using a different font-family? I'm not sure how to work around browser default CSS?
I don't mind the drop-down menus being different for the time being.
It's more about making the holding text in the search bar "Search all listings" consistent with "- Select Category" and "- Select Sub-Category". Do you know how I might do that?
Thanks Shane, I've just put in a wee workaround by changing the font colour. So it's looking much better.
Do you know where I can find guidance to bring the search buttons closer to the search fields?
Thanks, Cat
In the views you will notice that I added the "Go" buttons to a div with the class "col-sm-2". What you can do is to add an additional class to the divs or add an id and then adjust the margins.