Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search bar not working on multisite subsite
- This topic has 15 replies, 2 voices, and was last updated 7 years, 11 months ago by
kylehill.
-
AuthorPosts
-
May 25, 2018 at 10:11 am #18017
kylehill
ParticipantI’ve installed the plugin on a multisite installation and trying to include the search box in one of my subsites, but it’s not work.
https://winnersguide.com/book/ (this is part of main site and works perfectly)
https://winnersguide.com/market/ (this a subsite in the marketplace. Both using same shortcode.Am I missing something?
Kind Regards,
KyleMay 25, 2018 at 10:52 am #18018kylehill
ParticipantJust an update, I have changed the theme. No longer using the ajax search. Could you however still clarify if the shortcode should work on a subsite?
May 25, 2018 at 11:43 am #18019Ernest Marcinko
KeymasterHi,
The shortcode should work on any of the network sub-sites. Make sure that the plugin was network activated on the main (primary) site, on the global administrator panel. If not, then simply de-activate it, then network activate it on the main site, and it should start working.
May 25, 2018 at 2:40 pm #18030kylehill
ParticipantHi there,
The search shows, it just doesn’t have a styling or work properly.
Please check out: https://winnersguide.com/market/ for example.
Best Regards
KyleMay 25, 2018 at 10:30 pm #18031Ernest Marcinko
KeymasterHi Kyle,
I think you may have stumbled upon a potential bug, which I had to investigate in more details. The problem is, that the incorrect uploads folder is returned on the sub-site. The main site folder should be used, however WordPress returns the sub-site URL for some reason.
It tooke me a while to figure it out, and I think there is an issue with WordPress itself, as the method taken from their documentation does not work as intended, so I had to make a bypass solution.
I could only test this modification on one multisite network, but I am hoping it will do the trick permanently. Please follow the steps below carefully:
Please note: Before editing any files, please make sure to have a full site back-up just in case! If you need help with this, you can add temporary FTP access, and I will do it for you.
1. Open up the wp-content\plugins\ajax-search-pro\includes\classes\core\class-asp-manager.php file on your server via FTP
2. Replace the file contents entirely with this: class-asp-manager.php
3. Save the file
4. De-activate the plugin in the plugin manager
5. Activate it again (network activate)
6. This might not be neccessary, but: Open any of the search instances you created and just hit the Save all tabs! button, without changing anything.
7. Clear your site cache/browser cache, and it is done.Now the layout should be fixed and visible on each multisite blog. Please let me know how it goes, as if this works, I will include it as a permanent fix in the upcoming release.
May 26, 2018 at 3:01 am #18032kylehill
ParticipantErnest,
thank you for taking the time.
It does work, however, there is an issue with the placeholder. Please see https://winnersguide.com/market/
May 26, 2018 at 9:02 am #18033Ernest Marcinko
KeymasterHi,
Thank you for the feedback, I will include this in the upcoming release as a permanent fix.
It looks okay on my end, I see the magnifier icon missing, but it is from a custom CSS rule you have in the header:
[html]#ajaxsearchpro3_2 .probox, div.asp_m.asp_m_3 .probox {
min-width: 350px;
}[/html]When I disable that rule in the web dev tools, it looks like this: https://i.imgur.com/63VB6WJ.png
Is this not how it supposed to look, or is the issue something else?
June 8, 2018 at 3:49 am #18161kylehill
ParticipantYou cannot access this content.
June 8, 2018 at 12:57 pm #18169Ernest Marcinko
KeymasterHi Kyle,
Unfortunately I cannot do support via Skype, only via this support system, I am sorry. I need more time to respond to queries, as there is over 30 of them each day. Rest of my time is devoted to development, if any left by the end of the day.
If you need customizations or other requests, I usually suggest this team: wpkraken.io
So far there were no complaints, they do WordPress realted works mostly.June 8, 2018 at 12:59 pm #18170kylehill
ParticipantHey Ernest,
No custom work, just a little help configuring. But I understand
I will break it down into bitesize chunks and you can get back to me when you have a moment.
Thank you
June 8, 2018 at 1:14 pm #18171kylehill
ParticipantThe only thing I can’t figure out myself is why the placeholder moves to the right (rather than disappearing): https://winnersguide.com/market/
The shortcode is called from Menus > Search > Mega Menu > Replacements. As it is with other sites.
Any ideas?
June 9, 2018 at 1:59 pm #18178Ernest Marcinko
KeymasterHi,
I think I know why. There is a custom CSS rule, I believe within the theme, that changes the text indent when any input placeholder is focused.
To resolve it, apply this code to your theme custom CSS field (if it supports it) or use the custom CSS field on the search plugin back-end.
[html]input.orig::-webkit-input-placeholder { /* Chrome/Opera/Safari */
text-indent: 0 !important;
}input.orig::-moz-placeholder { /* Firefox 19+ */
text-indent: 0 !important;
}
input.orig:-ms-input-placeholder { /* IE 10+ */
text-indent: 0 !important;
}
input.orig:-moz-placeholder { /* Firefox 18- */
text-indent: 0 !important;
}[/html]June 10, 2018 at 5:14 am #18183kylehill
ParticipantYou cannot access this content.
June 14, 2018 at 12:27 pm #18282Ernest Marcinko
KeymasterHi!
1. Here – Search performance
2. Well, there is post type filter available, that can be defined as a drop-down as well (under the Front-end Options -> Post type filters panel), but the post author will be displayed still.
Instead of that, you should try a custom code to remove the author from the result. Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!-
This reply was modified 7 years, 11 months ago by
Ernest Marcinko.
June 14, 2018 at 12:33 pm #18285Ernest Marcinko
KeymasterI forgot to put the link for question 1, here: https://documentation.ajaxsearchpro.com/performance-tuning/fine-tuning-the-search-configuration
-
This reply was modified 7 years, 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.