Theme Requirements and Files Included in Luxride Package
Install Theme -> Install Child Theme -> Install Plugin -> Import Demo Content OR Import Select Pages
After Import Enable the responsive breakpoints in elementor ( Must )
After Import Troubleshoot Elementor
Set Frontpage & Blog ?
Enable maintenance mode (stagin site option) , Site Cookies , Preloader for site and Backtotop ?
To Create Menu , Mega Menu and Other options form menu.
To Edit Header & Change logo ?
To Edit Footer ?
Template usage for Page , Post , Ourfleet , Team and Service ?
To Add Widgets
Contact Form 7
Page title background and Breadcrumb ?
Set Archive page for Service , Team and Ourfleet
Rename Slug for Service , Team and Ourfleet
Too Add Service Post and set Service archive page , single Settings?
Too Add Team Post and set team archive page , single Settings?
Too Add Ourlfeet Post and set Ourlfeet archive page , single Settings?
Too Add Blog Post and set Blog Settings ?
404 Settings
Performanace Settings
Seo Options
Theme Typography
Google Fonts Or Custom Fonts Theme Color Changing To Add Contact Form 7 with icon To add Popup By using elementor and theme option To add Option panel Contact Form 7 -> Pickup and Drop Location Auto Complete Option Contact Form 7 -> DateTimePicker , Datepicker and Timepicker Option Booking Press Plugin Documentation Link
Google Fonts Or Custom Fonts Theme Color Changing To Add Contact Form 7 with icon To add Popup By using elementor and theme option To add Option panel Contact Form 7 -> Pickup and Drop Location Auto Complete Option Contact Form 7 -> DateTimePicker , Datepicker and Timepicker Option Booking Press Plugin Documentation Link
# Contact Form 7 -> Pickup and Drop Location Auto Complete Option
Location Autocomplete Documentation
Overview
The Location Autocomplete feature integrates Google Places API with your WordPress site to provide address autocomplete functionality for pickup and drop-off locations. This feature is particularly useful for transportation and delivery services.
Setup Instructions
1. Generate Google Places API Key
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Places API:
- Navigate to "APIs & Services" > "Library"
- Search for "Places API"
- Click "Enable"
- Create credentials:
- Go to "APIs & Services" > "Credentials"
- Click "Create Credentials" > "API Key"
- Copy your new API key
- (Recommended) Restrict the API key:
- Click on the newly created API key
- Under "Application restrictions", select "HTTP referrers"
- Add your website's domain
- Under "API restrictions", select "Places API"
2. WordPress Configuration
Adding API Key and Settings
- Log in to your WordPress admin panel
- Navigate to Appearance > Customize
- Find "Location Autocomplete Settings" section
- Configure the following settings:
- Enter your Google Places API key
- Select countries for address restriction (defaults to US if none selected)
- Enable/Disable the location autocomplete feature
3. Implementation in Contact Form 7
Adding Location Fields
Add the following classes to your input fields in Contact Form 7:
<!-- For pickup location -->
<label> Pickup Location
[text* pickup-location class:pickup-location]
</label>
<!-- For drop-off location -->
<label> Drop Location
[text* drop-location class:drop-location]
</label>
Important Notes:
- Use
pickup-locationclass for pickup location fields - Use
drop-locationclass for drop-off location fields - The autocomplete functionality will automatically initialize for these classes
4. Features and Functionality
Available Features
- Address autocomplete with Google Places API
- Country restriction options
- Automatic latitude and longitude capture
- Support for multiple pickup/drop-off fields
- Dynamic field addition support
- Custom event triggering on location selection
Event Handling
When a location is selected, the following data is available via custom event:
document.addEventListener('locationSelected', function(e) {
console.log('Selected Address:', e.detail.address);
console.log('Latitude:', e.detail.lat);
console.log('Longitude:', e.detail.lng);
console.log('Place ID:', e.detail.placeId);
});
5. Troubleshooting
Common Issues:
- Autocomplete not working:
- Verify API key is correctly entered
- Check if Places API is enabled in Google Cloud Console
- Ensure proper class names are used (
pickup-locationordrop-location)
- Country restrictions not working:
- Verify countries are selected in WordPress customizer
- Check browser console for any errors
- API key errors:
- Verify billing is enabled on Google Cloud Console
- Check API key restrictions
- Ensure domain is properly added to allowed referrers
Remember to keep y