Ivory Search › Forums › Support › make search button in the same line with search box
- This topic has 6 replies, 2 voices, and was last updated 4 years, 8 months ago by Ivory Search.
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
- March 6, 2020 at 7:57 AM #4066
Hi,
firstly, i’d like to thank you for replying to my email. I just managed to login in with my gmail account. So I’d will put the question again here.
my website is http://www.yuyintanglivehouse.com
1) I tried with the default style, and now the button and the box are in two lines. I tried with some css code you wrote in the forum but can’t work it out. Can you please help me?
2) it will be great to have it in the right side with a narrower button. also, I see other people have the small “search icon/symbol” button rather than the text. How can i change it?
3) I also tried some other styles, but then I can not see anything display in the menu area, which does exist when I move the mouse pointer to the position. is it because of the color of the menu is black? what I can do if I want to use slide or other style?
Thanks in advance!
fanmu aka. Jeremy
- March 6, 2020 at 5:59 PM #4070
I hope you are well today and thank you for your questions.
1) I tried with the default style, and now the button and the box are in two lines. I tried with some css code you wrote in the forum but can’t work it out. Can you please help me?
You can achieve this by adding the below CSS code in the Custom CSS option of Ivory Search plugin settings on the path Ivory Search -> Settings -> Settings
.is-menu form label { max-width: 80%; display: inline-block; } .is-menu form input.search-submit { width: auto; margin: 0; }
2) it will be great to have it in the right side with a narrower button. also, I see other people have the small “search icon/symbol” button rather than the text. How can i change it?
You can achieve it by changing menu search form style other than Default as described on the below page.
3) I also tried some other styles, but then I can not see anything display in the menu area, which does exist when I move the mouse pointer to the position. is it because of the color of the menu is black? what I can do if I want to use slide or other style?
Yes, you are right as the search icon has black color.
You can change seach icon color to white using below custom CSS code.
.is-menu path.search-icon-path { fill: #FFF; }
Best regards,
Ivory Search Support - March 6, 2020 at 8:28 PM #4072
Hi, really thank you for your answer.
I would like to make my questions clearer with some drawings in the attachment
1/ can I move the whole search bar and button to the leftmost edge of the black area? Please refer to my attached question 1 pic
1.1/ after adding the CSS code you share, if I add one more menu item from my menu widget, will it affect the current layout/position of the search bar? I would like it not to affect.
2/ can I use the icon button instead of the text button with the current default style? Please refer to my attached question 2 pic
thanks
JeremyAttachments:
You must be logged in to view attached files. - March 7, 2020 at 7:47 AM #4076
sorry i mean rightmost in my first question…
- March 7, 2020 at 8:47 PM #4081
1/ can I move the whole search bar and button to the leftmost edge of the black area? Please refer to my attached question 1 pic
Please try using below cusotm CSS code to achieve it.
@media only screen and (min-width: 992px){ .site-navigation ul li.is-menu { position: absolute; right: 0; top: 10px; } }
1.1/ after adding the CSS code you share, if I add one more menu item from my menu widget, will it affect the current layout/position of the search bar? I would like it not to affect.
No, it won’t affect.
2/ can I use the icon button instead of the text button with the current default style? Please refer to my attached question 2 pic
To achieve that, please edit the search form in the plugin options and use its Search Form Customizer in the Customize section and change the search form style having icon in the search button.
- March 8, 2020 at 6:46 AM #4082
thanks a lot!
- March 8, 2020 at 9:31 AM #4084
You are most welcome, I’m glad I was able to help you with this matter. There is no obligation but by your kind words I wonder if I could trouble you to leave a review based on this experience here:
https://wordpress.org/support/plugin/add-search-to-menu/reviews/?filter=5
I’d really appreciate that. 🙂
And if I can be of any further assistance please don’t hesitate to ask.
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login