I just launched a mobile version of my site and I’m having a hard time hiding a live chat script on the mobile hide-for-small
. This is the code I don't want displayed on the mobile version:
<script src="http://www.smartreachdigitalchat.com/scripts/invitation.ashx?company=?????"></script>
All the things I don’t want displayed on the mobile I simply write:
<div class="small hide-for-small"><script src="http://www.smartreachdigitalchat.com/scripts/invitation.ashx?company=?????"></script></div>
…and it would hide from mobile devices and only display on desktop computers, but here it’s not working; it seems to be hiding from both desktop and mobile.
What can I do to make the script execute only on desktop computers?