Notification Popover Onload

3 replies · opened May 10, 2020

PPierrafeeMay 10, 2020

Hi,

Do you have an idea how to add an notification popover when the page is load?

I'd like this notification without button and display when the page is load.
[ INFO COVID Blabla" onclick="SEMICOLON.widget.notifications(this); return true;">BUTTON](#)

The Modal Popup is too much invasive...

Thanks.

SSemicolon WebSTAFFMay 11, 2020

Hello,

This is Definitely Possible and more instructions about this has already been provided in the Documentation > Shortcodes > Notifications Section. Consider using the following code:


 Welcome to Canvas Demo!'>

and then the following JS Code at the bottom of the Page after the js/functions.js JS File Linking:


	jQuery(window).load( function(){
		SEMICOLON.widget.notifications( jQuery('#custom-notification-message') );
	});

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

PPierrafeeMay 15, 2020

Thanks for your answers. I've write the code but nothing happen...

Code

I let you check.
Thanks

SSemicolon WebSTAFFMay 16, 2020

Hello,

Apologies about the Inconveniences! There was a slight bug with the jQuery Code. Consider using this code instead:


	jQuery(window).on( 'load', function(){
		SEMICOLON.widget.notifications( jQuery('#custom-notification-message') );
	});

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

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