Search box hangs off menu
Support Area › Forums › Forward › Search box hangs off menu
- This topic has 8 replies, 2 voices, and was last updated 9 years ago by Bill Robbins.
-
AuthorPosts
-
April 4, 2015 at 17:22 #28512Sheila FredricksonParticipant
I want to add a search box to my navigation area. I already have a “Facebook” icon there, and there seems to be sufficient space for all to fit.
Despite that, the search box hangs off the edge of the navigation area by probably 30 pixels. See attached screen shot.
Is there possibly a fix for this? A forum search didn’t come up with anything.
Thanks in advance!
Sheila
Attachments:
April 4, 2015 at 17:27 #28514Bill RobbinsModeratorShelia,
I’d be glad to take a look for you. What’s the URL to your site?
Thanks,
BillApril 4, 2015 at 21:05 #28518Sheila FredricksonParticipantThis reply has been marked as private.April 4, 2015 at 21:13 #28519Sheila FredricksonParticipantThis reply has been marked as private.April 6, 2015 at 08:58 #28540Bill RobbinsModeratorGood Morning Shelia,
Thanks for sending over the login information. Let’s start off with the button color. In the customizer, there is a section for buttons. You can change the button’s colors there. If you need it to have separate colors from the other buttons in the site you can. Here’s how to do that:
- Go to the Appearance section in your WordPress dashboard and click on Customize.
- Look down for the advanced section and click on it. Then choose Custom CSS.
- In the box there, add this:
#navigation .button { color: #fff; background-color: #226202; } #navigation .button:hover { color: #fff; background-color: #226202; }
- The top style there is for the normal state of the search button. The second style is for the hover state. You can change those colors to fit your style.
- Save your changes.
That should take care of the button color. Let’s try this approach for your search box’s positioning:
- Go to the Appearance section in your WordPress dashboard and click on Customize.
- Look down for the advanced section and click on it. Then choose Custom CSS.
- In the box there, add this:
.header-search { margin: 0; width: 200px; } .header-search input#s { width: 120px; }
- Save your changes.
Let me know if you run into any trouble.
Have a great week,
BillApril 7, 2015 at 14:05 #28563Sheila FredricksonParticipantThanks, Bill.
The Search box in the nav bar does work, but it makes the bar wider. I need to ponder on that. I may end up putting it in the sidebar for the pages that will have one.
Can you answer just one more question? I’m sorry for being a bother.
Is there some CSS that can be added to underline all the links on the site?
Many thanks for your patience, I do appreciate it.
Sheila
April 7, 2015 at 14:55 #28567Bill RobbinsModeratorIt is possible to underline your links. Here’s how I would go about that:
- Go to your theme options page and choose the Advanced tab.
- Scroll down to the Custom CSS box and add this:
#content a.button, .widget a.button { text-decoration: none; } #content a, .widget a { text-decoration: underline; }
- Update your settings.
That should underline your links in your main page content and also in your widgets. It’ll skip buttons and also your navigation menu links/logo. Let me know if you have any questions.
Bill
April 7, 2015 at 15:05 #28569Sheila FredricksonParticipantThanks again, Bill.
That did it!
Sheila
April 7, 2015 at 15:08 #28571Bill RobbinsModeratorFantastic Sheila 🙂
-
AuthorPosts
- The topic ‘Search box hangs off menu’ is closed to new replies.