Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › COMPACT SEARCH BAR WIDTH ISSUE
- This topic has 13 replies, 2 voices, and was last updated 6 years, 11 months ago by
Ernest Marcinko.
-
AuthorPosts
-
May 29, 2019 at 8:57 pm #22949
cgold
ParticipantHi Guys,
I have added the shortcode to our menu which uses Shivnav plugin.
All looks good however the search box does get fully expanded when you click on it. It is set to 100%
Screenshots are attached.
Thanks
ColinMay 30, 2019 at 9:13 am #22954Ernest Marcinko
KeymasterHi Colin,
It looks like that the container element has an automatic width set, so it expands to a minimum value. Instead of percentage values, try using pixel values, that will do the trick.
May 30, 2019 at 10:17 am #22957cgold
ParticipantHi Ernest
That worked.
I have another question.
Is this the correct class name to target the h3 title of the verticle dropdown
div.asp_r.asp_r_1 .results .item .asp_content h3
Thanks
ColinMay 30, 2019 at 11:22 am #22958Ernest Marcinko
KeymasterHi Colin,
Yes, that seems correct to me.
May 30, 2019 at 7:33 pm #22966cgold
ParticipantHi Ernest
What would be the best way to show all results for two queries below
Smart watches
SmartwatchesCurrently, search results are displayed separately for both ways of writing this word.
Thanks
ColinMay 31, 2019 at 8:49 am #22968Ernest Marcinko
KeymasterHi Colin,
Well, probably using the additional keywords feature is a good way. You can add these keywords to the items where they are missing.
June 1, 2019 at 6:32 am #22980cgold
ParticipantHi Ernest,
I have another issue.
For mobile, it appears Ajax Seach Pro is adding white space under our menu header. How can we remove this? Have attached screenshot.
Also, How can we limit the amount of posts showing on mobile compared to desktop? We only want to show 5 posts on mobile in the dropdown after you search. Screenshot attached.
Thanks
ColinJune 3, 2019 at 1:13 pm #22997Ernest Marcinko
KeymasterHi,
I am not sure if you resolved the white space issue, but it looks okay to me at the moment: https://i.imgur.com/WbYIVr6.png
Let me know if it happens on a specific device.To resolve the height issue on mobile devices, try this custom CSS:
@media only screen and (max-width: 480px) { .asp_r .results { max-height: 300px !important; } }June 5, 2019 at 9:44 pm #23049cgold
ParticipantHi Ernest
This fix this issue…thanks
I have one more question for now.
When you enable autocomplete on mobile the autocomplete text sits behind the written text and is hard to read the text
I have attached a screenshot for your reference.
Thanks
ColinJune 6, 2019 at 8:16 am #23052Ernest Marcinko
KeymasterHi,
It looks like maybe a 1px misalignment for some reason. Try this custom CSS rule, it should align it 1px lower:
@media only screen and (max-width: 480px) { div.asp_m.asp_m_1 .probox .proinput input.autocomplete { margin-top: -33px !important; } }June 7, 2019 at 4:57 pm #23068cgold
ParticipantHi Ernets,
Thanks for your help all looks great.
last things I need to ask is how to make the settings menu icon the same size as the search box.
Screenshot attached.
Thanks
ColinJune 10, 2019 at 11:38 am #23078Ernest Marcinko
KeymasterHi Colin,
It looks like it’s only a black border/box shadow, check if the border and the box shadow of the settings icon is set to none: https://i.imgur.com/5ZKhpSV.png
Those should do the trick. If not, then use this custom CSS:.prosettings { background: white !important; } .prosettings svg { fill: black !important; }June 11, 2019 at 6:52 pm #23107cgold
ParticipantThanks Ernest
I wanted to ask you about the option of loading the css files aync.
Do you think its required as we used Cloudflare Rocket Loader.
Thanks
ColinJune 12, 2019 at 8:44 am #23116Ernest Marcinko
KeymasterHi Colin,
I don’t think it’s neccessary if you are using the Rocket Loader, it should take care of that.
-
AuthorPosts
- You must be logged in to reply to this topic.