• lukashaselberger93

    (@lukashaselberger93)


    Hi,

    my page is built using Elementor. In the header I’m using the Elementor search widget, however since installing the plugin, the sorting of the search results seems to be unchanged.

    For example when I search the word “pizza”, I get posts with the word “pizza” in the post content itself display before others.

    Something I realized is that the URL is https://www.lukashaselberger.com/?s=pizza&e_search_props=c51e90d-14031 after searching for “pizza”. When I delete the part of the URL after “s=pizza” and use https://www.lukashaselberger.com/?s=pizza instead, the sorting obviously works correctly.

    Can you help me with that issue? Thanks!

    Lukas

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

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

    (@msaari)

    The e_search_props is likely a shorthand for a bunch of Elementor search parameters. Perhaps you can simply remove it from the search form? It’s set with this:

    <input type="hidden" name="e_search_props" value="c51e90d-14031">

    If you can remove this from the search form, you should be fine.

    Thread Starter lukashaselberger93

    (@lukashaselberger93)

    Thank you for the quick response. I think this is beyond my technial capabilities. Do I need to add some custom code or what exactly shall I do in order to achieve that?

    Thanks, Lukas

    Plugin Author Mikko Saari

    (@msaari)

    I don’t know; there’s no single answer. Since you’re using Elementor, the Elementor support would be the best place to ask.

    Thread Starter lukashaselberger93

    (@lukashaselberger93)

    Thank you, will do that!

    adrianlda

    (@adrianlda)

    Did you get anywhere with Elementor about this? I’ve noticed that it part of the the search form widget, it is stopping the search results from working correctly, ie if I manually remove from the query string the search works perfectly

    Plugin Author Mikko Saari

    (@msaari)

    You can try this:

    add_filter( 'relevanssi_modify_wp_query', function( $query ) {
    $query->set( 'e_search_props', '' );
    return $query;
    } );
    adrianlda

    (@adrianlda)

    sorry I thought it was initially working but then discovered a colleague had disabled the plugin

    I’ve ended up adding some jquery to remove the hidden input field from the elementor widget

    $('input[name="e_search_props"]').remove();

    I suspect the field is something to due with query caching for their live search field,

    • This reply was modified 1 week ago by adrianlda.
    • This reply was modified 1 week ago by adrianlda.
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.