All you have to do is wrap the button snippet in a line of code. Use this code here:
{% if collection == null or collection.handle != 'YOUR-COLLECTION-HANDLE-HERE' %} ... {% endif %}
where the 'YOUR-COLLECTION-HANDLE-HERE' is the name of the collection and the " ... " is the snippets code