# Contact, Subscription & Social

## Contact, Subscription & Social

**Files:** `src/config/config.toml`, `src/content/sections/<language>/`, `src/config/social.json` · **Skill level:** Beginner

Taxo keeps contact, form, and social settings in three main places:

- `settings.contactInfo` in `config.toml`
- section frontmatter in `src/content/sections/`
- social links in `src/config/social.json`

In the Tina edition, these are **Site settings > Settings**, **Section defaults**, and **Social links** at `/admin/`. In the Sanity edition, they are **Site settings > Settings** and **Site settings > Social**, and **Sections** in your language, in the Studio.

### Main Contact Settings
```toml
[settings.contactInfo]
  address = "75 Garuda., Maju, INA 789"
  email = "support@yourdomain.tld"
  phone = "+000(123)556989"
  mapLink = "https://www.google.com/maps?q=Brooklyn,New York&output=embed"
```

These values feed:

- header phone blocks
- offcanvas contact block
- footer contact details
- the map on the contact page
- contact sections that use `settingFieldName`

### Contact Section Mapping
`contact-section-two.md` uses `settingFieldName` to pull values from
`settings.contactInfo`:

```yaml
list:
  - title: "Have any question?"
    icon: "/images/icons/svg/phone-call.svg"
    settingFieldName: "phone"
  - title: "Write email"
    icon: "/images/icons/svg/email.svg"
    settingFieldName: "email"
```

That means you can change the visible contact details globally just by editing
`config.toml`.

### Contact Form Providers
```toml
[settings]
  contactFormAction = "https://formsubmit.co/your_email@example.com"
  contactFormProvider = "formsubmit.co"
```

The action starts as a placeholder, so nothing is delivered until you change it.

| `contactFormProvider` | `contactFormAction`                            |
| --------------------- | ---------------------------------------------- |
| `formsubmit.co`       | `https://formsubmit.co/your_email@example.com` |
| `formspree`           | `https://formspree.io/f/your_form_id`          |
| `netlify`             | `/`                                            |

### Contact Form Fields
The field structure lives in:

- `src/content/sections/english/contact-section.md`, used on `/home-two/`
- `src/content/sections/english/contact-section-two.md`, used on `/contact/`

Each language has its own copy. Example field:

```yaml
- placeholder: "Email Address *"
  name: "Email Address"
  required: true
  type: "email"
  halfWidth: true
```

Taxo also supports:

- textarea fields (`tag: "textarea"`)
- standard selects (`dropdown`)
- searchable selects (`dropdown` with `type: "search"`)
- radio inputs (`type: "radio"`)
- checkboxes (`type: "checkbox"`)
- notes between the fields (`note: success`, and `info`, `warning`, `deprecated`, or `hint`)

### Mailchimp Subscription
```toml
[settings.subscription]
  enable = true
  title = ""
  note = ""
  formAction = "https://..."
  mailchimpTagValue = ""
```

This controls the subscription form used in Footer 2. `formAction` starts as a placeholder: in Mailchimp, open **Audience > Signup forms > Embedded forms** and copy the `action` address from the embed code. The code writes `&amp;` between parameters, so change each one to a plain `&`.

### Social Links
```json
{
  "main": [
    {
      "enable": true,
      "label": "Facebook",
      "url": "https://www.facebook.com/yourbrand"
    }
  ]
}
```

Taxo uses social links in multiple places:

- Header 1 topbar uses the first **4 enabled** links
- Header offcanvas uses the first **4 enabled** links
- other social widgets can use the full list

### Before You Go Live
Before going live:

1. replace all placeholder phone, email, and map values
2. replace the default form action URL
3. test one real submission
4. remove unused social networks by setting `enable: false`