If you’re working with the Divi Theme, you’ll likely need to upload high-resolution images, large video files, or Divi layouts. However, WordPress sets a default upload limit, which can make it frustrating when trying to add bigger files. This restriction can be a problem if you’re customizing your site with media-heavy designs or importing premade Divi layouts. Instead of resizing files or finding workarounds, the best solution is to increase the maximum file upload size. In this guide, we’ll walk you through different methods to adjust this limit specifically for Divi websites, ensuring you can upload files without running into errors.
Why Increase the File Upload Size in Divi?
Divi users often need higher upload limits for:
- Uploading large Divi layouts (.json files).
- Adding high-resolution images for background sections.
- Importing custom fonts and media-heavy content.
- Installing large plugins that enhance Divi’s functionality.
If your site restricts uploads to a small file size (e.g., 2MB or 8MB), you’ll need to increase it to avoid errors.
How to Check Your Current File Upload Limit
To see your current limit in Divi:
- Go to WordPress Dashboard → Media → Add New.
- Look for the message: “Maximum upload file size: X MB.”
Check the Current File Upload Limit in Divi
If the limit is too low, follow one of the methods below to increase it.
Methods to Increase the Maximum File Upload Size in Divi
Before diving into specific methods, it’s important to understand that the maximum file upload size in Divi is primarily determined by your server settings. If you’re encountering issues uploading large files, adjusting these settings can help. Below, we’ll explore different ways to increase the upload limit, starting with modifying the php.ini file.
1. Increase File Upload Limit Using php.ini
If your hosting allows access to the php.ini file, follow these steps:
- Connect to your server using FTP or cPanel’s File Manager.
- Locate the php.ini file in the public_html or wp-admin folder.
Open it and add or modify these lines:
upload_max_filesize = 256M
post_max_size = 256M
max_execution_time = 300
Increase File Upload Size in Divi Using php.ini
3. Save the file and restart your server if needed.
Read More: How To Add PHP Code To The Divi Website?
2. Modify the .htaccess File
If you can’t access php.ini, try editing .htaccess:
- Use FTP or cPanel to open the .htaccess file in public_html.
Add the following lines at the end of the file:
php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300
Increase File Upload Size in Divi by Editing .htaccess
2. Save the file and refresh your site.
3. Increase Upload Size via functions.php
For quick changes within WordPress, edit your theme’s functions.php file:
- In WordPress, go to Appearance → Theme File Editor.
Open functions.php and add this code at the bottom:
@ini_set('upload_max_filesize', '256M');
@ini_set('post_max_size', '256M');
@ini_set('max_execution_time', '300');
2. Save the changes and test by uploading a large file.
Read More: How to Add Custom CSS to Divi
4. Use a Plugin to Increase Upload Limit
If you’d rather not modify files manually, using a plugin is the simplest way to increase the maximum file upload size in a Divi website. Plugins like Increase Maximum Upload File Size let you adjust the limit directly from the WordPress dashboard without dealing with server settings. Here’s how to install and use it:
Installation and Setup Steps:
- Go to Plugins → Add New in your WordPress dashboard.
- In the search bar, type Increase Maximum Upload File Size and install the plugin.
- Click Activate once the installation is complete.
Install and Configure Increase Maximum Upload File Size Plugin in Divi
- Navigate to Settings → Increase Maximum Upload File Size from the dashboard.
- Choose a new upload limit from the available options (based on your server’s maximum allowed size).
- Click Save Changes to apply the new limit.
Adjust File Upload Limit in Divi Using a Plugin
This method is quick and doesn’t require any coding. However, if your hosting provider has a strict cap, the plugin may not override it. In that case, you might need to adjust settings through cPanel or contact your host for further assistance.Read More:23 WordPress Plugins for Divi Website
5. Contact Your Hosting Provider
Some web hosts have strict limitations on file uploads, preventing changes even if you modify .htaccess, php.ini, or use a plugin. If you’ve tried these methods and still can’t increase the limit on your Divi website, the best option is to contact your hosting provider directly. Many managed WordPress hosts offer support for adjusting upload limits, and they can often make the change for you. Be sure to ask about any restrictions that might still apply, as some hosts enforce maximum limits based on your plan. If needed, upgrading to a higher-tier hosting package may provide more flexibility.
Final Thoughts
If you’re running a Divi website, increasing the file upload limit is crucial for handling large images, videos, and Divi layout files without running into errors. The right method depends on your hosting environment. If you’re on shared hosting, using a plugin or modifying the .htaccess file is usually the easiest solution. However, if you have a VPS or dedicated server, adjusting the php.ini settings gives you more control over upload limits. If none of these methods work, reaching out to your hosting provider is the best way to ensure your site can handle larger files without restrictions.
Read More: How to Choose Your Hosting Smartly
0 Comments