Ivory Search › Forums › Support › How to make the search box full width on mobile
- This topic has 9 replies, 2 voices, and was last updated 1 week, 5 days ago by Ivory Search.
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
- October 28, 2024 at 8:16 AM #22152
- October 28, 2024 at 1:19 PM #22156
I hope you are well today and thank you for your question.
You can achieve this by adding the below CSS code in the Custom CSS option of Ivory Search plugin settings on the path Admin Area -> Ivory Search -> Settings -> Settings
@media (max-width: 921.9px) { #ast-mobile-header form.is-search-form { width: 490px; max-width: 100%; } #ast-mobile-header .site-header-section{ justify-content: left; } }
Best regards,
Ivory Search Support- October 28, 2024 at 6:40 PM #22160
Thank you for your quick response! I tried that but is there anyway to make the search box fit the width of the screen automatically? currently on my phone the search box is too long that it goes beyond the screen (see attached screenshot).
Attachments:
You must be logged in to view attached files.
- October 29, 2024 at 11:48 AM #22166
Your website is not accessible now.
Please make sure that it is accessible so I can help you.
- October 29, 2024 at 6:09 PM #22169
Sorry was making some updates to DNS, should be good now: realfofa.org
- October 30, 2024 at 2:13 PM #22177
Please try using the CSS code below to replace the above shared CSS code.
@media (max-width: 921.9px) { #ast-mobile-header form.is-search-form { width: 100%; margin-top: 11px; } #ast-mobile-header .site-header-section{ justify-content: left; display: block; width: 100% !important; } #ast-mobile-header .ast-builder-layout-element{ display: block; } }
- October 30, 2024 at 7:47 PM #22181
Thank you! the search box itself works perfectly! But it now pushes the Toggle button aside to a weird position, please see the screenshot here: https://imgur.com/a/o9fKMJv. Can you help to take a look? Thank you!
- November 1, 2024 at 5:43 PM #22193
Please change the above CSS code to the one below or replace it.
@media (max-width: 921.9px) { #ast-mobile-header form.is-search-form { width: 92%; margin-top: 11px; } #ast-mobile-header .ast-below-header-wrap .site-header-section{ justify-content: left; display: block; width: 100% !important; } #ast-mobile-header .ast-builder-layout-element{ display: block; } }
- November 1, 2024 at 6:06 PM #22195
It worked! Thanks a lot for the help!
- November 1, 2024 at 6:09 PM #22196
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:
I’d appreciate that. 🙂
If I can help you further, please don’t hesitate to ask.
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login