Search bar not working on multisite subsite

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search bar not working on multisite subsite

This topic contains 15 replies, has 2 voices, and was last updated by kylehill kylehill 5 years, 10 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #18017
    kylehill
    kylehill
    Participant

    I’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,
    Kyle

    #18018
    kylehill
    kylehill
    Participant

    Just 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?

    #18019
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #18030
    kylehill
    kylehill
    Participant

    Hi 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
    Kyle

    #18031
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #18032
    kylehill
    kylehill
    Participant

    Ernest,

    thank you for taking the time.

    It does work, however, there is an issue with the placeholder. Please see https://winnersguide.com/market/

    #18033
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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:

    #ajaxsearchpro3_2 .probox, div.asp_m.asp_m_3 .probox {
        min-width: 350px;
    }

    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?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #18161
    kylehill
    kylehill
    Participant
    You cannot access this content.
    #18169
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #18170
    kylehill
    kylehill
    Participant

    Hey 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

    #18171
    kylehill
    kylehill
    Participant

    The 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?

    #18178
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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.

    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;
    }
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #18183
    kylehill
    kylehill
    Participant
    You cannot access this content.
    #18282
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #18285
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I forgot to put the link for question 1, here: https://documentation.ajaxsearchpro.com/performance-tuning/fine-tuning-the-search-configuration

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.