Replace my theme's search bar

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Replace my theme's search bar

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

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #17176
    ryochan819
    ryochan819
    Participant

    Hi,

    Is there anyway to replace the search bar from my theme.

    My theme does not use search.php, I think they put the code is inside the attachment.

    #17180
    ryochan819
    ryochan819
    Participant
    You cannot access this content.
    #17188
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    If you could add temporary FTP access that would be the best I think. If not possible, you can upload your theme via zip, that is fine.

    Best,
    Ernest Marcinko

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


    #17192
    ryochan819
    ryochan819
    Participant
    You cannot access this content.
    #17201
    ryochan819
    ryochan819
    Participant

    I dont have FTP access, can you see my theme file? Thanks

    #17203
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you for the upload. I think the search form is printed by the catalog_search_form() on lines 559-575 on the end of the functions.php file.

    Replacing that function should be the solution. Try replacing that function with something like this:

    function catalog_search_form(){
    	echo do_shortcode('[wpdreams_ajaxsearchpro id=1]');
    }

    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 :)


    #17242
    ryochan819
    ryochan819
    Participant
    You cannot access this content.
    #17255
    ryochan819
    ryochan819
    Participant

    Hi,

    Can I keep the outlook of my theme’s default search bar, but search using ajax search pro? And I want to add range filter to my theme’s search result.

    #17257
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    The plugin cannot effect the theme search result list, it has it’s own container to display the results. You can move that container if you want by using the results shortcode.

    Best,
    Ernest Marcinko

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


    #17262
    ryochan819
    ryochan819
    Participant

    Can you find where I should replace my theme’s search result?
    I want to use my theme’s product catalog design.

    • This reply was modified 4 years, 4 months ago by ryochan819 ryochan819.
    • This reply was modified 4 years, 4 months ago by ryochan819 ryochan819.
    #17305
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I think that is simply the default WooCommerce results list, I am not sure. Maybe a file in the theme woocommerce directory overrides it? I am not sure, as I am not experienced with WooCommerce templating.

    Best,
    Ernest Marcinko

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


    #17307
    ryochan819
    ryochan819
    Participant

    Yes it is from woocommerce list. so is it possible to change it?

    I think it is in content-single-product.php.

    #17311
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I don’t know to be honest, you might have to check the WooCommerce documentation for that, as I am not familiar with the WooCommerce teplating system. However please note that this will not act as the woocommerce results list, as this is a separate container element.

    One other possibility is to use the Magnifier and Return button actions to redirect to the WooCommerce results page.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.