Home › Forums › WoodMart support forum › Search bar not responsive
Search bar not responsive
- This topic has 9 replies, 2 voices, and was last updated 5 years, 2 months ago by Elise Noromit.
-
AuthorPosts
-
August 22, 2019 at 9:01 am #139771
saugatakoleyParticipantHello! I am updating my websites and doing some changes on the theme. I have customized my mobile header with header builder. I have hamburger menu in the left, search form in the middle and cart on the right of the main header (mobile). The problem that I’m having is the searchbar is non responsive. For example, the searchbar takes too much space on iphone screen that it throws half of the cart icon away from the screen. However it’s okay in a Samsung J7 Pro. It also messes up in phones like Asus Zenfone Max pro m1. Please tell me how to make it responsive.
Attachments:
You must be logged in to view attached files.August 22, 2019 at 9:18 am #139786
Elise NoromitMemberHello,
Please provide the site URL your site admin access so that we could check the settings in the Header builder.
Best Regards
August 22, 2019 at 9:24 am #139789
saugatakoleyParticipantThank you for your response.
August 22, 2019 at 11:05 am #139807
Elise NoromitMemberHello,
The search width is determined by your custom CSS https://gyazo.com/1f5be33b856fbf27cfb96008d6664ec0
Remove this custom or reduce the min-width.
Best Regards
August 22, 2019 at 11:11 am #139809
saugatakoleyParticipantI did that, but the size of the search form is reduced naturally. I want to make the search bar a little wide.like this (screenshot)
Attachments:
You must be logged in to view attached files.August 22, 2019 at 12:36 pm #139839
Elise NoromitMemberHello,
Try to set the min-width in percentage, not in pixels.
Best Regards
August 22, 2019 at 12:49 pm #139843
saugatakoleyParticipantIf I set it on % it wouldn’t solve it. The search bar would expand to the right side only.
Attachments:
You must be logged in to view attached files.August 22, 2019 at 1:49 pm #139862
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Mobile:
body .whb-general-header .whb-mobile-center { flex: 1 0 auto; } body .whb-general-header .whb-mobile-left, body .whb-general-header .whb-mobile-right { flex: 0 1 auto; }
Best Regards
August 22, 2019 at 3:01 pm #139894
saugatakoleyParticipantListen! You are the best! Thank you. It worked like a charm. Much love to you and the team!
August 22, 2019 at 4:31 pm #139913
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: header style, search bar style
- You must be logged in to create new topics. Login / Register