Hi,
I need to create a chrome inline installation but at the moment the button element let me choose only links.
when trying to add a simple text with a
<form><input type=”button” value=”InstallNow” onClick=”chrome.webstore.install();”></form>
the system deletes the onclick event
Any idea how I can achieve this?
we are using Enfold 2.6
Thanks
Yoav
Hey Yoav!
Please update the theme to the latest version (2.8.1).
You can try putting the code inside a Code Block element, that way it will get preserved.
Best regards,
Josue
Hey!
Did you try to use a link instead:
<a href="#" class="button" onclick="chrome.webstore.install();">InstallNow</a>
Cheers!
Peter
Hi Peter,
yes i did , but since we are using enfold 2.6 the onClick event get deleted.
I am trying to eliminate the need to upgrade to 2.8 at the moment as Josue suggested
thanks
Yoav
You can try putting that JS code at the very end of js/avia.js.
Regards,
Josue