How you can overwrite the default form template in Pirate Forms

  1. Copy the file pirate-forms/public/partials/pirateforms-form.php into a folder called "pirate-forms" under the theme directory e.g. if your theme is zerif-lite, the file will be zerif-lite/pirate-forms/pirateforms-form.php
  2. Edit the copied file as per requirement, keeping in mind the following fields available
    1. The thank you message that will be shown once the email is sent
      $this->thank_you_message
      		
    2. An array of errors, if any
      $this->errors
      		
    3. The start of the HTML form element
      $this->form_start
      		
    4. The text box (HTML text), along with its label, that contains the name of the recipient
      $this->contact_name
      		
    5. The text box (HTML email), along with its label, that contains the email of the recipient
      $this->contact_email
      		
    6. The text box (HTML text), along with its label, that contains the subject of the email
      $this->contact_subject
      		
    7. The text box (HTML textarea), along with its label, that contains the body of the email
      $this->contact_message
      		
    8. An optional file upload element
      $this->attachment
      		
    9. An optional reCAPTCHA element
      $this->captcha
      		
    10. The submit button
      $this->contact_submit
      		
    11. The end of the HTML form element
      $this->form_end