Topic: Adding custom buttons
Hello.
I want to add a button into the button area for another social platform.
I hook into onInitComplete and add HTML to DOM.
var buttonHTML = '/* Copy of Facebook button */';
document.getElementsByClassName('jb-bb-btn-facebook')[0].insertAdjacentHTML('beforeBegin', buttonHTML);
It works well, a new button is added,
but Juicebox set width to the parent element jb-classifier-link-wrapper hence this output:
http://storage5.static.itmages.com/i/14 … 350b6c.png
I can unset width from outside, but there are two things that blocks me:
1. Juicebox set width after onInitComplete is fired.
2. Juicebox set width every time window change size
Can you advice here? Or may be compile a version for me that doesn't set width?
Why do you force it in the first place?