- This topic has 9 replies, 3 voices, and was last updated 9 years, 4 months ago by
Tom.
-
AuthorPosts
-
November 29, 2016 at 6:30 am #249202
Bobby
Hello Tom,
I have question about the search bar in the main nav menu. At this time, when I click the search icon, the search bar stretches all the way across the nav menu. Is there a way to make the search bar do the same…. but stretch out underneath the the main nav bar with the text inside bar saying “Search”.
Thanks.
November 29, 2016 at 6:58 am #249210Richard Bland
Hi Bobby,
Thanks for reaching out.
I think this one may well be a feature request as it would involve quite a bit of coding to achieve what you are looking for.
What we can do right now is leave this open for Tom to check in on. I am not aware at this stage any such feature being available for us but he will be able to confirm this for us shortly.
There some plugins which help to enhance the search facility on a WordPress website, but none that I know of which could replace the actual search bar with have within GP.
Thanks Kindly
November 29, 2016 at 8:57 am #249246Tom
Lead DeveloperLead DeveloperMaking it show below it quite easy with some CSS:
.navigation-search { bottom: auto; top: 100%; }Adding the placeholder text is a little more difficult because it involves overwriting the function: https://generatepress.com/forums/topic/enter-predefined-text-in-searchbox/#post-151358
Let me know if you need more info 🙂
November 29, 2016 at 10:06 am #249274Bobby
Thanks, that worked great. Hmmm…….I see the “Search” text when I click inside the search form area, but is it a way for the “Search” text to automatically show inside the form area without having to click in the form area??? Hope this makes sense…
November 29, 2016 at 6:55 pm #249543Tom
Lead DeveloperLead DeveloperThe “placeholder” HTML5 attribute will display slightly different in all browsers.
In Chrome, it should appear right away.
What browser are you using?
November 30, 2016 at 1:42 am #249632Richard Bland
Not sure if this will help but I have used this jQuery in the past to help with compatibility issues, but it would require a bit of customisation on your part Bobby:
December 1, 2016 at 6:10 am #250192Bobby
Hi Tom and Richard,
I tried it on all browsers, but it did not automatically auto fill with the text “Search.’ I have to click in the search box first and then it comes up. Actually, its no big deal, I’m just happy I got the search box to move down underneath the nav bar. Thank you guys for your help and extra effort in trying to get to work.
I do have one more last question, but its pertaining to a different topic. I will post it with a new heading, so if someone else might be looking for the answer..they will be able to find it.
Take care.
December 1, 2016 at 6:16 am #250193Richard Bland
Hi Bobby,
If you are confident in putting in your own jQuery that plugin could well help force browsers to display your chosen text. I have used it in the past for a similar reason.
Thanks kindly though
December 1, 2016 at 8:54 am #250246Bobby
Hey Tom and Richard,
I got it working. I overlooked the link Tom provided me that had the code to place in the functions file. Silly me.
https://generatepress.com/forums/topic/enter-predefined-text-in-searchbox/#post-151358
Thanks for your help. Thank you Richard for also providing the plugin.
Take care.
December 1, 2016 at 9:54 am #250265Tom
Lead DeveloperLead DeveloperGlad you got it working 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.