HTMl Query - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

HTMl Query

DE

Dan Ellmore

SP Page Builder 2 months ago

I have an SP Pagebuilder site www.hellolincoln.co.uk and we need some html to work to make buttons pop up for push notifications

I have tried a Joomla Module, and also the html boc in SP Pagebuilder but cannot get it to work

can you advice how I get this to display please - the code is

<button class=" btn btn-secondary mittpwapush__subscribe NewsChannel">Subscribe</button> 

<button class=" btn btn-primary mittpwapush__unsubscribe NewsChannel">Unsusbsribe</button>

thanks

Dan

0
5 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 months ago #204532

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:

  1. 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.

  1. 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.

  1. 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

0
DE
Dan Ellmore
Accepted Answer
2 months ago #204551

Many thanks we will look into this asap

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 months ago #204647

You are welcome 😊

Let me know if you need further help.


If the answer resolved your query, you can mark it as accepted to close the post and guide others with similar questions. You’ll find a button to accept answers below each comment.

If you need further assistance, feel free to let us know!

0
DE
Dan Ellmore
Accepted Answer
2 months ago #204649

Everything seems to be working fine now, thank you for your help.

Dan

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 months ago #204655

Thanks for accepting the answer.


I have a humble request. It would be very kind of you if you can manage some moment to give us feedback on 

  1. Joomla Extension Directory
  2. TrustPilot

This will inspire us to improve.

0