-
Notifications
You must be signed in to change notification settings - Fork 865
Adding search to top-bar? #324
Comments
How exactly are you trying to implement it, you should be able to simply add the search form using the form structuring here: https://codex.wordpress.org/Function_Reference/get_search_form, although you'd still have to adjust the styling based on your layout. |
Ah-ha. Thank you. Been a while, so I'm still clearing out some theme development cobwebs. This is what I was looking for. I had a suspicion it didn't have anything to do with this theme necessarily, but I wasn't sure. Thanks again. |
Hello, I finally made my way back to my search bar. I tried using I'm sure it's not necessarily acting odd, but that I'm just missing something. I tried looking throughout the theme for the correct place to put the call to the form. I settled on top-bar.php:
I'm trying to get the search bar in the right-side section of the top-bar, but I'm not sure on how to do that. My assumption of just plopping the call to the form like I have shown in the above code sample is all wrong... but I can't find where I should be doing that. Here is what I'm trying to accomplish: Any help/suggestions/ |
This is what I am doing: |
Your search form is not being included in the top-bar DIV, from your code. You can get it working by including a DIV for your search box, in top-bar.php, and defining a specific size for the containing DIV.
I just messed around with it quickly in a sandbox. |
Now I see my code is exactly the same as Shackep :S |
Hello,
This may be a silly question. But is there a best way to add a search bar to the top-bar navigation in this theme, without going into functions.php?
The text was updated successfully, but these errors were encountered: