WordPress Theme Search bar

Home Forums Product Support Forums Ajax Search Pro for WordPress Support WordPress Theme Search bar

This topic contains 10 replies, has 2 voices, and was last updated by

 
Keymaster
2 years, 8 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #22519

    Participant

    After I have upgraded to Woo Commerce 3.6 and WordPress 5.2 , the default theme search bar does not get replaced by the Ajax search bar and Woocommerce search is not replaced by Ajax. I have had to disable it.

    This is also affecting my search result display as it is using the default.

    Theme is WPdance – WD OSWAD MARKET v 2.20

    Great product by the way really helpful.

    Please advise a resolution.

    Thanks
    Kevan
    [email protected]

    • This topic was modified 2 years, 8 months ago by  kevan.
    #22524

    Hi Kevan,

    Thank you for your kind words!

    I checked both the homepage and the results page, but I am seeing the ajax search pro search bar there.
    Was the issue resolved in the meantime? Thanks!

    Best,
    Ernest Marcinko

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


    #22531

    Participant

    Hi Ernest,

    Its a pleasure. Thanks

    Its not resolved, you will notice on the home page and all the others that I have disabled the header search due to my site being live. I will enable it now for you to see.

    Basically it is the default wodrpress and woo commerce search that must be replaced by your search bar.

    I have attached the pics as well

    Attachments:
    You must be logged in to view attached files.
    #22533

    Participant

    Basically both these options that have stopped working.

    Attachments:
    You must be logged in to view attached files.
    #22543

    Hi,

    Thanks!

    I have looked at the theme files quickly via the theme editor, but there is no searchform.php file. That very likely means, that the search form is very likely hard-coded. It was probably different before the theme update, and the author decided to use a different method. The WordPress and WooCommerce override methods did not change recently, so it must have been a theme related change.
    I tried to locate the hard-coded form file within the theme files, but I could not find it there. Can you please ask the theme author where it is located? After that it should be possible to replace via the code editor.

    Another possibility is to try the plugin as a menu item, since I see it is already within the navigation menu.

    Best,
    Ernest Marcinko

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


    #22568

    Participant

    Hi Ernest,

    Under appearance , Edit Theme, I notice this. Is this what you looking for?

    I will also ask the author of the Theme.

    /*———————————————————————————————————————————*/
    /*- 1.3.1 HEADER SEARCH ———————————————————————————————————–*/
    #header .header_search .bg_search #searchsubmit {
    z-index:2;background-color:#fff;
    }
    #header form[id^=”searchform-“] .bg_search input[id^=”searchsubmit-“] {
    margin:0;
    }
    #header form[id^=”searchform-“] .bg_search input[id^=”s-“] {
    border:0;
    }
    #header .bg_search #s {
    width:300px;
    height:38px;
    position:relative;
    z-index:1;
    padding:0 30px 0 10px;
    line-height:32px;
    border:0;
    }

    #header .header_search #searchform {
    margin:0;
    }
    #header #searchform .bg_search #searchsubmit {
    display:inline-block;
    height:16px;
    position:absolute;
    top:8px !important;
    right:5px;
    cursor:pointer;
    border:0;
    background:url(images/ic-search.png) left center no-repeat;
    border-radius:0!important;
    -moz-border-radius:0!important;
    -webkit-border-radius:0!important;
    -o-border-radius:0!important;
    transition:none;
    -moz-transition:none;
    -webkit-transition:none;
    padding:0 0 0 16px;
    font-size:0;
    }
    #header #searchform .bg_search #searchsubmit:hover{background:url(../images/ic-search-hover.png) left center no-repeat;}
    #header #searchform .bg_search input#searchsubmit{
    margin:0;
    }
    #header #searchform .bg_search #s{
    border:0;
    }
    #header .header_search .bg_search input[id^=”searchsubmit-“] {
    z-index:2;background-color:#fff;
    }

    #22586

    Hi,

    Unfortunately no, these are only the stylesheet rules. These only determine the styling of a specific search field, nothing else. It is very likely a .php file somewhere hard-coded within the theme file structure.

    Best,
    Ernest Marcinko

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


    #22829

    Participant

    Hi Ernest,

    Please see below from the theme author. I need to try and sort this out soon please Id really appreciate your assistance.

    Let me know if you need anything from me
    _________________________________________

    hello, i don’t know why you said that this theme uses hard-code for search but this we don’t need a searchform.php file separately for search just use default seach function of wordpress default or custom new search function.

    And this is the code for seach on header:

    wp-content\themes\wp_oswad_market\framework\functions\main.php as example at here http://prntscr.com/ns5qk8 you can seach the key “my_search_form”

    and you can go to the file wp-content\themes\wp_oswad_market\theme\functions\filter_theme.php to check function my_search_form as image:
    http://prntscr.com/ns5rhr

    Thank You & Best Regards,

    #22845

    Hi,

    Thank you, that helps. So, as instructed by the author, you will have to replace the line 320 within the wp-content\themes\wp_oswad_market\framework\functions\main.php file, in the theme directory.

    Replace it from this:

    <div class="header_search"><?php echo my_search_form(); ?>

    ..to this:

    <div class="header_search"><?php echo do_shortcode('[wpdreams_ajaxsearchpro id=1]'); ?></div>

    That should very likely do the trick.

    Best,
    Ernest Marcinko

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


    #22969

    Participant

    Hi Ernest,

    Unfortunately it does not seem to have worked.

    I have tried the exact string you provided as well as the shortcode , still nothing.

    Any suggestions?

    Thanks
    Kevan

    #22974

    Hi Kevan,

    Well, from the developers note that seemed to be the correct like, as he pointed to it. In case you use any type of cache, make sure to clear it after making the change, that may cause the problem. If not, then that is probably not the code we are looking for.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.