Search instance not showing on mobile

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search instance not showing on mobile

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26908
    labproy03
    labproy03
    Participant

    Hi, I have a search instance configured to replace the default theme search and it works great on desktop, but on mobile the default theme search isn’t replaced. Take a look at this screenshots:

    Working fine on desktop: https://snipboard.io/4B9OQX.jpg
    Not working on mobile: https://snipboard.io/9o2sHC.jpg

    Any idea on how to solve this? Any help will be very appreciated.

    My website isn’t live yet, it’s under a coming soon page. To login you should go to https://thenobo.com/backend

    Thanks in advance.

    #26920
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Looks like the mobile search is not printed via the get_search_form hook, so the plugin cannot override it. I tried to look through the theme files to perhaps find where it is printed, but I could not.
    Can you please ask the theme author in which file is the mobile search form printed?
    The only way to override that is via the child theme & custom coding, but I can help you with that, if I know where to look.

    Best,
    Ernest Marcinko

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


    #26944
    labproy03
    labproy03
    Participant
    You cannot access this content.
    #26960
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Perfect, that helped.
    I created the suggested file for you, you can find it in: home\dh_dzvjxp\thenobo.com\wp-content\themes\elessi-theme-child\includes\nasa-mobile-product-searchform.php

    Yes, you can create a different search bar, and use that shortcode there. The plugin shortcode is placed on line 34 in that file, you only need to change the id=1 part of it, to the ID of the desired search bar.

    Best,
    Ernest Marcinko

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


    #26962
    labproy03
    labproy03
    Participant

    Thanks a lot Ernest, this works now.

    Have a great day. Cheers!

    #26963
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.