make search button in the same line with search box

Ivory Search Forums Support make search button in the same line with search box

Viewing 6 reply threads

You must be logged in to create new topic or reply to the topic.

  • Author
    Posts
    • #4066
      Jeremy Guo
      Participant
      • Topics: 1
      • Replies: 3

      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

    • #4070
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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.

      Change Menu Search Form Style

      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

    • #4072
      Jeremy Guo
      Participant
      • Topics: 1
      • Replies: 3

      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
      Jeremy

      Attachments:
      You must be logged in to view attached files.
    • #4076
      Jeremy Guo
      Participant
      • Topics: 1
      • Replies: 3

      sorry i mean rightmost in my first question…

    • #4081
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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.

    • #4082
      Jeremy Guo
      Participant
      • Topics: 1
      • Replies: 3

      thanks a lot!

    • #4084
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      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.

Viewing 6 reply threads

You must be logged in to create new topic or reply to the topic.