Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #279074

    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

    • This topic was modified 10 years, 5 months ago by assaftoval.
    #279246

    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

    #279974
    This reply has been marked as private.
    #279981

    Hey!

    Did you try to use a link instead:

    
    <a href="#" class="button" onclick="chrome.webstore.install();">InstallNow</a>
    

    Cheers!
    Peter

    #279982

    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

    #280119

    You can try putting that JS code at the very end of js/avia.js.

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.