Compatible with Mageplaza_SocialShare #138
pabodah
started this conversation in
3. Integrations
Replies: 1 comment
-
You need to call $(document).on('breeze:load', function () {
a2a.init_all();
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The module was installed and seems to be working in Breeze environment.
There is a JS file added via the module - https://static.addtoany.com/menu/page.js
The above will load the share icons with a HREF embedded
Issue is when the product detail page is opened via the category detail page, the icons are missing the HREF therefore the icon click will not work
When the product above product detail page is refreshed, the icons will be loaded with HREF embedded and the icon click will be working
I tried with custom.js file as per https://breezefront.com/docs/custom-javascript but it did not work
`(function () {
'use strict';
$(document).on('breeze:load', function () {
//adding the content in the JS file
});
})();`
Is there a way to load the above JS file to be loaded so the requirement fullfills?
Beta Was this translation helpful? Give feedback.
All reactions