You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to be more flexible there we should allow people to render their own HTML template instead of the default button.
this gives great flexibility in designing how the paywall looks
We have all the JS and the REST endpoints to allow to do this.
The text was updated successfully, but these errors were encountered:
The WP way to do this would be to move this method into a template file, and enable override.
Try to load from theme folder: {my-theme}/lightning-publisher-wordpres/button-template.php
Default to plugin folder:/lightning-publisher-wordpres/public/templates/button-template.php
Instructions
In your theme folder create folder: 'lightning-publisher-wordpres'
Copy file "lightning-publisher-wordpres/public/templates/button-template.php" to above folder
Tweak template to your needs
2nd option is to modify via filter hook
You also have access to $plugin instance in same template file and you can access all data.
Add this snippet to your theme functions.php
Currently we add a default button to unlock the paywall
to be more flexible there we should allow people to render their own HTML template instead of the default button.
this gives great flexibility in designing how the paywall looks
We have all the JS and the REST endpoints to allow to do this.
The text was updated successfully, but these errors were encountered: