Home Forums WoodMart support forum Search AJAX suggestions, add attribute

Search AJAX suggestions, add attribute

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #110794

    VloerenOutlet
    Participant

    Is there anyway I can add attributes(like brand) to the AJAX search suggestions? I have added the attribute to the $suggestions array in search.php but I don’t know which file to edit to display it.

    Appreciate the help.

    #110804

    Artem Temos
    Keymaster

    Hi,

    You can find AJAX suggestions script in the file js/functions.js but you need to disable JS minification and combination in Theme Settings -> Performance.

    Kind Regards

    #110833

    VloerenOutlet
    Participant

    Done and it worked. This means I’d have to minify the js file manually?

    #110842

    Artem Temos
    Keymaster

    Yes, but we suggest you to use some plugin for that task. We use WP Rocket for example.

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