Change search form width based on specific screen width

Ivory Search Forums Support Change search form width based on specific screen width

Viewing 4 reply threads

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

  • Author
    Posts
    • #6052
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,790

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

      Could you please share the page URL from your site where it is displaying so that I can help you?

      Best regards,
      Ivory Search Support

    • #6060
      dearepoch
      Participant
      • Topics: 1
      • Replies: 2

      Hello,

      Here’s the site: http://indoparta.com/

      It’s currently on the homepage’s header. I just recently changed the width to 480px.

      Since the current CSS only allows a fixed width for the search form, it causes my header to be jumbled up when the screen width is lower than a certain px amount (please look at the screenshot attached). I want to avoid this, but still keeping the length of the search form at 480px when it’s in desktop view.

      Could you please help?

      Attachments:
      You must be logged in to view attached files.
    • #6077
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,790

      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

      @media only screen and (max-width: 1160px) {
      .is-menu.default form {
          max-width: 100%;
          width: auto;
      }
      }
    • #6086
      dearepoch
      Participant
      • Topics: 1
      • Replies: 2

      Hi,

      Thank you, works like a charm! Best support ever šŸ˜€

      Cheers!

    • #6095
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,790

      You are always 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 4 reply threads

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