Replace Theme Search

This topic contains 4 replies, has 2 voices, and was last updated by hatean hatean 6 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14857
    hatean
    hatean
    Participant

    Hello,

    Great plugin, loving it!

    I have one problem though, I cannot replace the default search with your plugin. I created an instance and set it as replacing the default but it does not work. COuld you please assist?

    Best,
    Yusuf.

    #14862
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Yusuf,

    Thank you for your kind words!

    If the automatic replacement is not working, the the theme search bar must be hard-coded to one of the theme files. I’m guessing you are reffering to the header pop-out search bar.

    While customizations and installations are not part of support, I will try to help you with this as much as I can. For this reason I cannot guarantee I’m able to do this.
    Can you please add temporary FTP details as well? I will try to track down the theme file that has the search code hard-coded and place it to the child theme directory, and replace it with the plugin shortcode there if possible.

    Best,
    Ernest Marcinko

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


    #14870
    hatean
    hatean
    Participant
    You cannot access this content.
    #14890
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Yusuf,

    Thank you for the details, they worked flawlessly.

    The good news is, that I was able to track down the code that is responsible to print the header form, and was able to make a change to it so now the ajax search pro shortcode is displayed instead of the default search bar.

    The bad news is that it was not hard-coded into the theme, but included from one of the plugins called hybrid-composer. I guess that might be bundled with the theme or something similar. Unfortunately I had to make direct changes to one of the plugin files, as the search form was simply hard-coded there. In case that hybrid-composer plugin is updated, this change will most likely be deleted.

    In that case if you need to restore it on an update event, just follow these steps:
    – Open up the \wp-content\plugins\hybrid-composer\headers\menu-classic.php file via FTP
    – Replace it’s contents with this: https://goo.gl/Gboqe7
    And that should restore the changes.

    Best,
    Ernest Marcinko

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


    #14958
    hatean
    hatean
    Participant

    Hello Ernest,

    You are the best! It does work flawlessly.

    That is correct, Hybrid Composer comes with the theme. I will keep this in mind in case the theme is updated.

    I can’t thank you enough!

    Best,
    Yusuf.

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

You must be logged in to reply to this topic.