• Resolved wphipster

    (@wphipster)


    Hi there,

    Im currently working on a site build with Oxygen Builder, and everything works perfectly, unless you click “show all”. It just show everything, but with the keyword items first. I figured the issue is due to the queries the plugin applies:
    https://example.com/?s=skull&dgwt-wcas-search-submit=&post_type=product&dgwt_wcas=1

    How do I remove the bold part, so its a clean search query?

Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi,

    Probably there is a conflict with other plugins or directly with Oxygen Builder.

    To disable dgwt_wcas=1 you can use the following JavaScript code.

    
    (function ($) {
        $(document).ready(function () {
    		var $flags = $('[name="dgwt_wcas"]');
    		
    		if($flags.length){
    		    $flags.remove();
    		}
        });
    })(jQuery);
    

    If you aren’t familiar with JS, you can install Code Snippets plugin and apply this code as a JavaScript snippet.

    Remember, that after removing this flag, your search results will be based on the native WooCommerce search engine.

    Parameter post_type=product is added by WooCommerce and is required.
    Parameter dgwt-wcas-search-submit= do nothing and you can ignore it.

    Best
    Damian

Viewing 1 replies (of 1 total)

The topic ‘Remove query strings’ is closed to new replies.