Notifications

1 reply · opened Jun 16, 2023

DDavegdrJun 16, 2023

Hello SemiColon

Is there a new method with V7 to trigger custom notifications?

The method described in the Documentation appears not to work:

<div id="custom-notification-message" data-notify-position="top-right" data-notify-type="info" data-notify-msg='<i class="icon-info-sign"></i> Welcome to Canvas Demo!'></div>

<script type="text/javascript">
jQuery(window).on( 'load', function(){
SEMICOLON.widget.notifications({ el: jQuery("#custom-notification-message") });
});
</script>

SSemicolon WebSTAFFJun 16, 2023

Hello,

Yes, the JS Functions have changed in the v7. Apologies that the Documentations were not updated to describe this change. We have just updated the Documentation: https://docs.semicolonweb.com/docs/shortcodes/notifications/#docs-snippet-custom-notification and this will definitely fix your issues. This is the new codes:
[ch_pre] Welcome to Canvas Demo!'>

window.addEventListener( 'load', function(){
	SEMICOLON.Modules.notifications(document.querySelector('#custom-notification-message'));
});

[/ch_pre]

Thanks for your Kind Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard