Contact Section Overview
The contact section is located inindex.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 inindex.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
Customizing the Message Template
The message template is at line 574. You can customize it:index.html
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 Links
Social media buttons are at lines 468-496:index.html
Updating Social Media Links
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:Sidebar Social Icons
Social icons also appear in the sidebar at lines 509-522:index.html
Contact Section Styling
The contact cards styling is instyle.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.
Alternative: Email Integration
If you prefer email instead of WhatsApp, you can use amailto: link:
index.html