Hi, I have added a third party Elementor Addon (Namogo - elementor-extras) to create a simple Portfolio filter. Pretty basic functionality.
The Filter was not working when using with the Sonaar theme so I I looked at Firefox Console. Firefox is showing the following error.
When I rename (disable) the file sonaar.scripts.min.js the filter works??? What it the error that Firefox is showing and why could this conflict be happening? I am stuck as I do not know java.....
The filter works on all other Vanilla themes (twentynineteen, hello - elementor, etc)
Hi, I have bizarrely narrowed it down to the following section from line 3079 - 3086:
If I remove these lines of code, the Masonry effect + the Filter works as expected...
Same thing when I remove lines 3474 to 3485. I was trying to find the element by trial and error.
Therefore, I can't narrow the conflict down... Any ideas......?
BY REMOVING:
var elementToAvoidList = $('rem#wpadminbar a, rem.esgbox, rem.link-mode-inline a, rem.link-mode-lightbox a, rem.languages-selector a, rem.lang-item a, remwpml-ls-menu-item a, rem.no-ajax a, rem.elementor-image-gallery a[data-elementor-open-lightbox="yes"], .remuael-grid-item-content a, rema.fancybox') remvar YouCanGo = true
Could you please provide me access to your WP-Admin ? Also, please reset any code you have changed to the genuine one so I can check the real issue from the begnining and dig into it.
Hi, I have added a third party Elementor Addon (Namogo - elementor-extras) to create a simple Portfolio filter. Pretty basic functionality.
The Filter was not working when using with the Sonaar theme so I I looked at Firefox Console. Firefox is showing the following error.
When I rename (disable) the file sonaar.scripts.min.js the filter works???
What it the error that Firefox is showing and why could this conflict be happening? I am stuck as I do not know java.....
The filter works on all other Vanilla themes (twentynineteen, hello - elementor, etc)
Error: Barba.js: no container found sonaar.scripts.min.js:28:11695
getContainer http://wordpress-224129-884248.cloudwaysapps.com/wp-content/themes/sonaar/dist/js/sonaar.scripts.min.js?ver=1.0:28
init http://wordpress-224129-884248.cloudwaysapps.com/wp-content/themes/sonaar/dist/js/sonaar.scripts.min.js?ver=1.0:28
start http://wordpress-224129-884248.cloudwaysapps.com/wp-content/themes/sonaar/dist/js/sonaar.scripts.min.js?ver=1.0:28
init http://wordpress-224129-884248.cloudwaysapps.com/wp-content/themes/sonaar/dist/js/sonaar.scripts.min.js?ver=1.0:4671
http://wordpress-224129-884248.cloudwaysapps.com/wp-content/themes/sonaar/dist/js/sonaar.scripts.min.js?ver=1.0:3407
jQuery 4
If it helps....The online checker, https://jshint.com/ found many errors from line 28 of your file sonaar.scripts.min.jsWhatever is causing the conflict, it may help others to identify this.
Hi, I have bizarrely narrowed it down to the following section from line 3079 - 3086:
If I remove these lines of code, the Masonry effect + the Filter works as expected...
Same thing when I remove lines 3474 to 3485. I was trying to find the element by trial and error.
Therefore, I can't narrow the conflict down... Any ideas......?
BY REMOVING:
var elementToAvoidList = $('rem#wpadminbar a, rem.esgbox, rem.link-mode-inline a, rem.link-mode-lightbox a, rem.languages-selector a, rem.lang-item a, remwpml-ls-menu-item a, rem.no-ajax a, rem.elementor-image-gallery a[data-elementor-open-lightbox="yes"], .remuael-grid-item-content a, rema.fancybox') remvar YouCanGo = true
elementToAvoidList.each(function (e, el) { if (el == element) YouCanGo = false
Hi,
Could you please provide me access to your WP-Admin ? Also, please reset any code you have changed to the genuine one so I can check the real issue from the begnining and dig into it.
Thanks,
Max from the Sonaar.io Crew
Hi,
make sure to use the default template in your page attribute. see screenshot: https://d.pr/i/AKXQtl
Thanks,
Max from the Sonaar.io Crew
Ha!!!
Was that all it was...?
Sorry to have wasted your time and thanks for the help & solution!
Paul
You are welcome
Thanks,
Max from the Sonaar.io Crew