Hello Dan Ellmore,
Thanks for reaching out.
The HTML button code you’re using looks fine, but the reason it won’t do anything yet is that push notifications don’t work with plain HTML alone. Those buttons need to be connected to JavaScript logic that handles the subscribe/unsubscribe process with your push notification service.
A few suggestions:
- Placement in SP Page Builder
You can safely place the button HTML inside a “Raw HTML” addon in SP Page Builder. This ensures the markup is output exactly as written.
- Include the JavaScript
Check if the push notification provider (looks like mittpwa) gave you a JavaScript snippet. That script should listen for clicks on the .mittpwapush__subscribe and .mittpwapush__unsubscribe buttons and then handle the subscription logic. Without this script loaded, the buttons won’t trigger anything.
- Testing
Make sure the JavaScript file is loaded on the page where you added the buttons. You can include it in Template Options > Custom Code > Custom JavaScript. You can check out the documentation: How to use custom JavaScript in Helix based templates
Best regards