intercom / intercom-rails

The easiest way to install Intercom in a Rails app.
https://developers.intercom.io/reference
MIT License
280 stars 106 forks source link

Adjusting the html of intercom widget #161

Closed barr-code closed 8 years ago

barr-code commented 8 years ago

For some reason, the Intercom button on my page has the class .intercom-acquire (and associated styling) when I manually include the script provided on my Intercom integration dashboard. However, using the gem to integrate Intercom, that class and styling are missing.

Is there a way to, using config options, specify that the HTML should include that class? Otherwise, how can I have jQuery listen for the Intercom widget to finish loading so that I can add the appropriate classes using JS?

RuairiK commented 8 years ago

Hi, you need to tell intercom-rails to include the acquire widget using this config setting:

config.include_for_logged_out_users = true

Hope this helps.