Hello, thank you for the kind words!
You can delay the prompt following this guide: https://documentation.onesignal.com/docs/wordpress-customizations#customizing-subscription-prompts
If you need assistance, please contact our support team directly at support@onesignal.com
We will be happy to assist you asap!
Following the above guide does not work, and the prompt still appears immediately when opening the website in an incognito window.
In addition when clicking the login link I get the following error message at the top of the page:
// Delay Only Example setTimeout(function(){ console.log(“about to initialize OneSignal”); window._oneSignalInitOptions.promptOptions = { slidedown: { prompts: [ { type: “push”, autoPrompt: true, text: { /* actionMessage limited to 90 characters */ actionMessage: “Your Custom Action Message”, /* acceptButton limited to 15 characters */ acceptButton: “Yes”, /* cancelButton limited to 15 characters */ cancelButton: “No”, }, delay: { /* seconds to wait for display */ timeDelay: 30, /* # pageviews for prompt to display */ pageViews: 2, } } ] } } window.OneSignal = window.OneSignal || []; window.OneSignal.push(function() { window.OneSignal.init(window._oneSignalInitOptions); }); }, 3000);
Please help.
My apologies. After clearing the page cache the delay does work. However the code still shows at the top of each page, and I can’t figure out how to resolve this issue. Please help.
This code has been added into the header. Should it have been inserted somewhere else instead. Please advise.