Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Problem (Conflict) with scroll bars
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 4 months ago.
- AuthorPosts
- July 18, 2016 at 8:11 pm #9545
We have been using Ajax Search Pro and WooCOmmerce Ajax Product Filter (BeRocket) for months without a problem. After the last update the scroll bars no longer work on the Ajax Product Filter. I spoke to them and they found that you are both using the same jQuery addon:
Main problem, that both of the plugins uses same jQuery addon to create scrollbar. You can try to remove this addon from one of the plugin, but this can cause some other problem.
wp_enqueue_script( ‘berocket_aapf_widget-scroll-script’, plugins_url( ‘js/scrollbar/Scrollbar.concat.min.js’, __FILE__ ), array( ‘jquery’ ), BeRocket_AJAX_filters_version );
I tried removing their line but that didn’t work. Do you have any thoughts or ideas?
We would like to continue using both products.
Thanks,
DarrylJuly 19, 2016 at 8:09 am #9546Hi!
I’ve tried to access the site url you provided, but I’m getting a wordfence error: https://i.imgur.com/KgjwGtG.png
Can you please authorize viewing of the site?I have a few ideas on resolving this. Until I can see the site, I can only guess.
Solution 1: Changing javascript source
On the Compatibility Options panel, try changing the Javascript Source to “Minified Scoped” to see if that changes anything. If not, then try the other options as well: https://i.imgur.com/Vyy4tjF.pngIf this doesn’t work:
Solution 2: Disabling the scrollbar in Ajax Search Pro
i.) For that first you will have to change the Javascript Source option to non-minified: https://i.imgur.com/WIij5hS.png
ii.) Then open the wp-content\plugins\ajax-search-pro\includes\classes\core\class-asp-init.php file, and remove lines 132-133:wp_register_script('wpdreams-scroll', ASP_URL . 'js/' . $js_source . '/jquery.mCustomScrollbar.js', array($prereq), $media_query, $load_in_footer); wp_enqueue_script('wpdreams-scroll');
These are guesses only, but I hope one of them will actually work.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 19, 2016 at 10:06 am #9547What country are you loging in from?
July 19, 2016 at 10:14 am #9548You cannot access this content.July 19, 2016 at 11:21 am #9549Hi!
Thank you, I was able to find a solution.
For future reference, I’ve changed lines 132-138 in the wp-content\plugins\ajax-search-pro\includes\classes\core\class-asp-init.php file to:
if ( !wp_script_is('berocket_aapf_widget-scroll-script') && !wp_script_is('berocket_aapf_widget-scroll-script', 'registered') ) { wp_register_script('wpdreams-scroll', ASP_URL . 'js/' . $js_source . '/jquery.mCustomScrollbar.js', array($prereq), $media_query, $load_in_footer); wp_enqueue_script('wpdreams-scroll'); }
The problem might have been caused because ajax search pro uses a newer version of the scrollbar script. Luckily it’s backwards compatible, so it will work with the older version as well.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 19, 2016 at 10:10 pm #9560Ernest,
Thanks for your help!! Seems to have solved the issue. Appreciate it….
-Darryl
July 20, 2016 at 8:23 am #9561You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘Problem (Conflict) with scroll bars’ is closed to new replies.