Skip to main content
The contact section includes a form that sends messages via WhatsApp, contact information display, and social media links. This guide shows you how to configure everything using the actual code from the template.

Contact Section Overview

The contact section is located in index.html at lines 404-498 and includes:
  • Mini contact form with WhatsApp integration
  • Contact information display (phone, email, location)
  • Social media links

WhatsApp Integration Setup

The contact form sends messages directly to WhatsApp using JavaScript. The handler code is in index.html at lines 554-583.

WhatsApp Handler Code

index.html

Configuring Your WhatsApp Number

1

Find Your WhatsApp Number

Get your WhatsApp number including country code (e.g., USA: 1, Colombia: 57, UK: 44).
2

Format the Number

Remove all spaces, dashes, and special characters. Include country code.Examples:
  • Colombia: 573229520608
  • USA: 15551234567
  • UK: 447911123456
3

Update the Code

Replace the number in line 559:
index.html
The WhatsApp number must include the country code and have NO spaces, dashes, parentheses, or plus signs.

Customizing the Message Template

The message template is at line 574. You can customize it:
index.html
Use \n for line breaks in the WhatsApp message. Use \n\n for paragraph spacing.

Contact Form HTML

The form structure is at lines 416-438:
index.html

Customizing Form Fields

Adding Custom Fields to WhatsApp Message

If you add new form fields, update the JavaScript to include them:
index.html

Contact Information Display

The contact information cards are at lines 444-463:
index.html
1

Update Phone Number

Replace the phone number text with your own number.
2

Update Email Address

Change the email address to your contact email.
3

Update Location

Modify the location text to your city and country.
4

Change Icons (Optional)

You can use different Tabler Icons like ti ti-device-mobile for mobile or ti ti-mail-forward for email.

Adding More Contact Methods

Add additional contact information:
index.html
Social media buttons are at lines 468-496:
index.html
1

Replace GitHub URL

Update the href with your GitHub profile URL.
2

Replace LinkedIn URL

Update with your LinkedIn profile URL.
3

Replace WhatsApp Link

Use https://wa.me/YOURNUMBER or create a WhatsApp link at wa.link.
4

Replace Email

Update the mailto: link with your email address.

Adding Additional Social Networks

Add more social media platforms:
Social icons also appear in the sidebar at lines 509-522:
index.html
Make sure to update social media links in BOTH places: the contact section AND the sidebar for consistency.

Contact Section Styling

The contact cards styling is in style.css at lines 414-432:
style.css

Testing WhatsApp Integration

1

Update WhatsApp Number

Ensure your WhatsApp number is correctly formatted in the JavaScript code.
2

Fill Out Test Form

Open your portfolio in a browser and fill out the contact form with test data.
3

Submit Form

Click the submit button. A new tab should open with WhatsApp Web.
4

Verify Message

Check that the pre-filled message contains all your form data correctly formatted.
5

Send Test Message

Send the message to confirm it arrives at your WhatsApp account.
Test the WhatsApp integration on both desktop (WhatsApp Web) and mobile (WhatsApp app) to ensure it works correctly on all devices.

Alternative: Email Integration

If you prefer email instead of WhatsApp, you can use a mailto: link:
index.html
The mailto: method requires the user to have an email client configured. WhatsApp integration generally provides a better user experience.