Summary | Override signup CTA requirements | |
Preview | PREVIEW_LINK | |
Repository | GitHub - communiteq/discourse-tc-override-cta-requirements | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
As outlined in Showing "signup cta" quickly - #4 by Johani the variables that decide when a signup popup is shown are hard coded. This component allows you to override them.
This component allows a site administrator to override these values by offering settings for the three variables that were previously hard coded:
prompt read time minutes
: the amount of reading time in minutes before the CTA is triggeredprompt topics
: the number of topics that must be read before the CTA is triggeredprompt hide duration minutes
: the amount of time the CTA is hidden when it is dismissed.
There is also a console decision logging
setting. When it is enabled it will log the variables that are being evaluated when determining whether the CTA should be shown or not.
When this component is active, the native evalution logic in core must be disabled by unchecking the enable_signup_cta
site setting.
This theme component also works with the Signup Banner theme component.
This component was made for and sponsored by Playground by LGM, community dedicated to Growth, Sales & Recruiters to share on B2B outreach strategies.