Skip to content

Commit

Permalink
Updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
martywallace committed Mar 30, 2019
1 parent 2fc72af commit 8f38505
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ Add the following tag to your form where you’d like the reCAPTCHA to be displa
{{ craft.recaptcha.render() }}
```

Render parameters [per the documentation](https://developers.google.com/recaptcha/docs/display#render_param) are injectable to the `render()` function, e.g.

```twig
{{ craft.recaptcha.render({
theme: 'dark',
size: 'compact'
}) }}
```

You can also create the reCAPTCHA element yourself using the `sitekey` template variable. This is especially useful for implementing invisible recaptcha.

```twig
Expand Down

0 comments on commit 8f38505

Please sign in to comment.