AI Assistant
Notifications
Clear all

[Closed] How to make error/success notices last longer

3 Posts
2 Users
2 Reactions
2,781 Views
JorgeW
Posts: 107
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@jorgew)
Estimable Member
Joined: 7 years ago
[#50637]

Hi @robert, @chris,

How can I give more time to read the notices that appear on top-right confirming actions, like post submitted, post edited, and especially when there was an error?

Currently users have about 1sec (I guess) to read those messages.

Thanks


2 Replies
JorgeW
Posts: 107
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@jorgew)
Estimable Member
Joined: 7 years ago

Like this one...

wpForo success error notice

Posts: 993
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@martin)
Support Team
Joined: 10 years ago

Hi @jorgew,

The error message duration is currently set 8 seconds. You can manage them using following hook codes in a PHP code snippet of the Code Snippets plugin:

function custom_wpforo_error_message_duration( $duration_in_milliseconds ){
	$duration_in_milliseconds = 10000; //10 seconds. 1000 is one second
	return $duration_in_milliseconds;
}
add_filter( 'wpforo_notice_timeout_error', 'custom_wpforo_error_message_duration', 11);

function custom_wpforo_success_message_duration( $duration_in_milliseconds ){
	$duration_in_milliseconds = 10000; //10 seconds. 1000 is one second
	return $duration_in_milliseconds;
}
add_filter( 'wpforo_notice_timeout_success', 'custom_wpforo_success_message_duration', 11);

Share: