Shortcode Usage
Usage
[opshell_contact_form]
Place the shortcode on any page or post where the contact form should appear.
Form Fields
| Field | Name Attribute | Type | Required |
|---|---|---|---|
| Name | ops_name | text | Yes |
ops_email | Yes | ||
| Subject | ops_subject | text | Yes |
| Message | ops_message | textarea | Yes |
Hidden Fields
| Field | Name Attribute | Purpose |
|---|---|---|
| Honeypot | ops_hp | Bot detection (hidden via CSS + tabindex=-1) |
| Nonce | opshell_contact_nonce | CSRF protection |
| Turnstile | cf-turnstile-response | Cloudflare Turnstile token |
Styling
The form uses CSS classes:
.opshell-contact-panel— Container.opshell-contact-form— Form element.opshell-field— Field wrapper.opshell-contact-submit— Submit button.opshell-contact-success— Success message.opshell-contact-error— Error message
Custom styles are defined in the child theme.