younetdigitallife
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [Advanced Woo Search] View All Results – Move to TopI used this script and worked ( the previous one).
add_action( 'wp_enqueue_scripts', 'aws_wp_enqueue_scripts', 999 ); function aws_wp_enqueue_scripts() { $script = ' function aws_results_html( html, options ) { var match = html.match(/<a class="aws_result_item aws_search_more"[.\s\S]*?<\/a>/gm); if ( match && typeof match[0] === "string" ) { html = html.replace(/<a class="aws_result_item aws_search_more"[.\s\S]*?<\/a>/gm, ""); html = html.replace(/(<a[.\s\S]*?<\/a>)/, match[0] + "$1"); } return html; } AwsHooks.add_filter( "aws_results_html", aws_results_html ); '; wp_add_inline_script( 'aws-script', $script); wp_add_inline_script( 'aws-pro-script', $script);
Forum: Plugins
In reply to: [Advanced Woo Search] View All Results – Move to TopI just purchased the premium version and the snippet is not working… Maybe i need to change something in the script?
Thank you in advance.
Forum: Plugins
In reply to: [Advanced Woo Search] View All Results – Move to TopThat worked !! Thank you for your help!
Forum: Plugins
In reply to: [Advanced Woo Search] View All Results – Move to TopResults are now showing but nothing is changed.. The “View all Results” button is still at the bottom of the search results.
Forum: Plugins
In reply to: [Advanced Woo Search] View All Results – Move to TopHello , i tried the script and clear the cache , but now it seems the search bar is not working at all…
The icon just keep spinning with no results.
After inspecting , the error is the following
Uncaught TypeError: Cannot read property '0' of null at aws_results_html ((index):3692) at common.js?ver=2.28:44 at Array.forEach (<anonymous>) at common.js?ver=2.28:43 at Array.forEach (<anonymous>) at Object.AwsHooks.apply_filters (common.js?ver=2.28:41) at Object.showResults (common.js?ver=2.28:266) at Object.success (common.js?ver=2.28:140) at c (jquery.min.js?ver=3.5.1:2) at Object.fireWith [as resolveWith] (jquery.min.js?ver=3.5.1:2)
- This reply was modified 3 years, 6 months ago by younetdigitallife.
Viewing 5 replies - 1 through 5 (of 5 total)