Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › ASP Settings Box Display
- This topic has 10 replies, 2 voices, and was last updated 5 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
October 12, 2020 at 5:31 pm #29750
Alex Meda
ParticipantHi,
I want to set–up one of my asp instances to be displayed by default on mobile phone. I think that I did what is required but it’s not working yet. Please have a click on the following links to understand more my request.
watch the set-up of the plugin (The search instance id=22)
See the resultsOctober 12, 2020 at 5:33 pm #29751October 13, 2020 at 9:45 am #29754Ernest Marcinko
KeymasterHi,
Thanks for the details. From the front-end source, I am seeing search instance ID=19 on the mobile view, but it does not have the settings box visible by default.
On your video you are editing I think ID=22, which is not the same search bar. Make sure to check the search with the shortcode ID=19 to enable those options: https://i.imgur.com/4INeDGQ.pngOctober 13, 2020 at 4:15 pm #29766Alex Meda
ParticipantHi,
I am afraid that I haven’t been clear enough so that you could fine the right url. Search instance 19 as you pointed out to me is on the landing page but the one I am talking about (Search instance 22 for mobile phone) is on the following page.On this page there are 2 search instances.
search instance 22 and 24. The first one is only displayed on phone and tablet and the second is only displayed on computer. I hope you understand better!
October 14, 2020 at 7:49 am #29779Ernest Marcinko
KeymasterIs there any custom code anywhere used with the search bars?
If not, can you please check if this option is disabled: https://i.imgur.com/0alNls6.png
October 14, 2020 at 2:17 pm #29792Alex Meda
ParticipantYou cannot access this content.
October 15, 2020 at 9:08 am #29804Ernest Marcinko
KeymasterThanks! Line 1009 actually hides the settings box on page load, if the vieport width is below 1025px, and it does that for each search bar: https://i.imgur.com/SoQBsJz.png
I’m not sure what exactly the next section does, as it emulates a double click on the settings toggle, whenever the input is focused. It is probably still line 1009 though.October 15, 2020 at 2:24 pm #29830Alex Meda
ParticipantOk I understand better. I think this code was written by one of my developers with your tech support along. But I only want search instance id_19, 23 & 8 to display settings box as soon as user starts typing. The only exception for now, is to get search instance id=22 to be displayed by default on mobile phone.
How do we do it ?October 16, 2020 at 9:47 am #29837Ernest Marcinko
KeymasterWell, you can try changing that line, to something like:
jQuery('.asp_s').not('.asp_s_22').css('display', 'none');..but for the customization changes, please consult with your developer as well.
October 16, 2020 at 4:20 pm #29839Alex Meda
ParticipantOk thank you for the details, I will let you know how it goes. Please allow me to ask you 2 quick questions knowing that ASP is a pretty heavy plugin, my developer indeed, has been working hardly on the optimization of the website and yet the results barely reach my expectations so here are my questions:
1-) Do you think that having many search instances could slow down the website? ( most of the search instances are there for test purpose so they are not in use on front end)
2-) Is there any optimization options that I should know about ASP ?
Thank you!
October 17, 2020 at 10:58 am #29845Ernest Marcinko
KeymasterHi,
1 & 2. No, it should be all right. At cetain number of search instances, the plugin switches to a anyhcronous CSS loader feature – to only load the assets for search instances on the actual page. This is a very handy feature, and can be excplicitly enabled here: https://i.imgur.com/KoWlbpS.png
Also, you can use conditional asset loading: https://i.imgur.com/b3KTL0O.png
That allows completely including/excluding every asset of the plugin on selected pages only. With these tools you can fully control the asset loading. I recommend leaving all the other options on the compatibility options menu as they are by default. -
AuthorPosts
- You must be logged in to reply to this topic.