Scrolling Issue with Filter Results
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Alessandro on November 1, 2023, 15:59Hello,
After applying the filter on my website and scrolling, the results don't automatically return to the desired position, requiring manual scrolling. I'm using the HUSKY plugin for WooCommerce filters. I'm looking for a solution to make the results reappear in the desired position without the need for manual scrolling.
Thank you for your assistance.
Best regards,
Alessandro
Hello,
After applying the filter on my website and scrolling, the results don't automatically return to the desired position, requiring manual scrolling. I'm using the HUSKY plugin for WooCommerce filters. I'm looking for a solution to make the results reappear in the desired position without the need for manual scrolling.
Thank you for your assistance.
Best regards,
Alessandro
Quote from Pablo Borysenco on November 2, 2023, 12:15Hello Alessandro
Please read this - https://products-filter.com/auto-scroll-to-element-after-ajax-is-done AND https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-mode
Hello Alessandro
Please read this - https://products-filter.com/auto-scroll-to-element-after-ajax-is-done AND https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-mode
Quote from Alessandro on November 2, 2023, 17:34Thank you for your response. Could you please check the first link? It leads to a non-existent page with a 404 error. Here is the broken link: https://products-filter.com/auto-scroll-to-element-after-ajax-is-done. Thanks again.
Thank you for your response. Could you please check the first link? It leads to a non-existent page with a 404 error. Here is the broken link: https://products-filter.com/auto-scroll-to-element-after-ajax-is-done. Thanks again.
Quote from Pablo Borysenco on November 3, 2023, 11:52Hello
Please try this - https://products-filter.com/auto-scroll-to-element-after-ajax-is-done
Hello
Please try this - https://products-filter.com/auto-scroll-to-element-after-ajax-is-done
Quote from Alessandro on November 3, 2023, 14:07I've tried both of the recommended solutions, but I haven't been able to make the page scroll after using the filter.
However, I'd like to try this solution:
https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-modeI've added a small `if` statement to check if the conditions are met:
```php
function add_custom_code_to_page_load() {
if (isset($_GET["swoof"])) {
echo 'The condition is true.';echo '<script>
jQuery(window).on("load", function() {
$(".woof").animate({
scrollTop: $(".woof_products_top_panel_content").offset().top - 100
}, 777);
});
</script>';
}
else {
echo 'The condition is false.';
}
}
add_action('wp_head', 'add_custom_code_to_page_load');
```
https://bresciaeventi.com/home-eventi/It seems that the code is not detecting the URL with `if (isset($_GET["swoof"]))`.
As a precaution, I have temporarily disabled ACF fields from Husky and I am only using the default ones, which consist of a text field and a category field. Additionally, I want to inform you that I haven't applied any plugins for managing permalinks.
Thank you for your help.
I've tried both of the recommended solutions, but I haven't been able to make the page scroll after using the filter.
However, I'd like to try this solution:
https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-mode
I've added a small `if` statement to check if the conditions are met:
```php
function add_custom_code_to_page_load() {
if (isset($_GET["swoof"])) {
echo 'The condition is true.';
echo '<script>
jQuery(window).on("load", function() {
$(".woof").animate({
scrollTop: $(".woof_products_top_panel_content").offset().top - 100
}, 777);
});
</script>';
}
else {
echo 'The condition is false.';
}
}
add_action('wp_head', 'add_custom_code_to_page_load');
```
https://bresciaeventi.com/home-eventi/
It seems that the code is not detecting the URL with `if (isset($_GET["swoof"]))`.
As a precaution, I have temporarily disabled ACF fields from Husky and I am only using the default ones, which consist of a text field and a category field. Additionally, I want to inform you that I haven't applied any plugins for managing permalinks.
Thank you for your help.
Quote from Pablo Borysenco on November 6, 2023, 12:06Hello
Give me a link to the page where you use my plugin
https://bresciaeventi.com/home-eventi/ - my plugin is not on this page
Hello
Give me a link to the page where you use my plugin
https://bresciaeventi.com/home-eventi/ - my plugin is not on this page
Quote from Alessandro on November 6, 2023, 12:36Hello, I've reactivated the script on the same page. Thank you.
https://bresciaeventi.com/home-eventi/
Hello, I've reactivated the script on the same page. Thank you.
https://bresciaeventi.com/home-eventi/
Quote from Pablo Borysenco on November 6, 2023, 13:31Hello
Please change this code - https://share.pluginus.net/image/i20231106133024.png - .woocommerce.columns-3
Hello
Please change this code - https://share.pluginus.net/image/i20231106133024.png - .woocommerce.columns-3