Skip to main content

Shortcode Usage

Usage

[opshell_contact_form]

Place the shortcode on any page or post where the contact form should appear.

Form Fields

FieldName AttributeTypeRequired
Nameops_nametextYes
Emailops_emailemailYes
Subjectops_subjecttextYes
Messageops_messagetextareaYes

Hidden Fields

FieldName AttributePurpose
Honeypotops_hpBot detection (hidden via CSS + tabindex=-1)
Nonceopshell_contact_nonceCSRF protection
Turnstilecf-turnstile-responseCloudflare 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.