Search bar width

Ivory Search Forums Support Search bar width

Viewing 2 reply threads

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

  • Author
    Posts
    • #4251
      KevinTitan
      Participant
      • Topics: 1
      • Replies: 1

      Hi Support team,
      Hope you are doing well. I would like to reduce the width ( or length ) of search bar by css. I understand my question is not new issue , and following your instruction in previous posts, I know must add right id module into css option. But, I try 2 days ago and cannot make it changing anythings. I appreciate if you could help me some advices.
      Here is my code
      form.is-search-form.is-form-style.is-form-style-2.is-form-id-2025 label {
      width: 40%;
      max-width: 50%;
      }
      And my website wwww.Ltek.vn
      Thank you Team

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

      I hope you are well today and thank you for your question.

      Every theme displays the search form differently so the CSS code that works on one website won’t work on another as the search form markup is different.

      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

      .main-header-bar input.is-search-input {
          width: 200px;
          padding: 6px 12px;
      }

      Best regards,
      Ivory Search Support

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

      You are always welcome here 🙂

      Thank you very much for your valuable review.

Viewing 2 reply threads

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