Hi there,
Good morning, Milos!
WordPress by default doesn’t allow some file types like GPX for security reasons. To enable the upload of GPX files, you can use one of these methods:
Method 1: Add Support for GPX Files Using Code
You can add support for GPX files by adding code to your theme’s functions.php
file or using a custom plugin:
- Access
functions.php
:
- Go to your WordPress dashboard.
- Navigate to “Appearance” > “Theme Editor.”
- Open the
functions.php
file of your active theme.
- Add the Following Code:
function custom_upload_mimes($existing_mimes) { $existing_mimes['gpx'] = 'application/gpx+xml'; return $existing_mimes; } add_filter('mime_types', 'custom_upload_mimes');
- Save the Changes.
This code snippet will allow GPX files to be uploaded to the media library.Method 2: Use a Plugin
If you prefer not to edit code, you can use a plugin to manage file uploads:
- Install the Plugin:
- Go to “Plugins” > “Add New.”
- Search for “WP Add Mime Types” or a similar plugin.
- Install and activate the plugin.
- Configure the Plugin:
- Go to “Settings” > “MIME Types” or the plugin’s settings page.
- Add the following MIME type:
- MIME Type:
application/gpx+xml
- File Extension:
gpx
- Save the Settings.
After following either method, you should be able to upload GPX files to the media library and use them with Elementor.
Kind regards,