• Resolved turminder

    (@turminder)


    Relevanssi and WPML are really working well together, results are restricted to the current language of the page.
    Still I am using the free Blocksy Theme from Creativethemes, and one feature doesn’t match:
    Blocksy offers a modal Window Search (great) with a preview list of the results. But in this particular case, results are mixed amongst language.
    Any idea?

    Same post made to the Blocksy support forum

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mikko Saari

    (@msaari)

    I looked at the Blocksy source code, and the search seems to be done with WP REST API. Relevanssi is, by default, disabled in REST API searches. Adding this to a code snippet might help:

    add_filter('rest_post_search_query', function ( $args, $request ) {
        $args['relevanssi'] = true;
        return $args;
    }, 10, 2);
    Thread Starter turminder

    (@turminder)

    Thank you a lot for your quick response.
    Will try and keep you posted.

    Thread Starter turminder

    (@turminder)

    putting the code in the child-theme functions.php?

    Plugin Author Mikko Saari

    (@msaari)

    That’s one possible spot, yes.

    Thread Starter turminder

    (@turminder)

    Thank you: so far it seems good.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Relevanssi, WPML and Blocksy’ is closed to new replies.