If you wish to change the upload file size limit for your WordPress installation, we strongly recommend you to contact your hosting provider. If you want to do it yourself, you have 3 methods available:
- Change the PHP.ini file
- Edit theme functions.php file
- edit htaccess
The php.ini version
While this is the best version and recommended by us, you might not really be able to change this so easily. If you are on a shared host, you probably don’t have access to this file. In this cases, we strongly recommend you to contact your hosting provider. They will assist you with this issue.
Edit theme functions.php file
While we do not recommend this, you can edit the theme files and add the following code:
@ini_set( ‘max_execution_time’, ‘300’ );
@ini_set( 'upload_max_size' , '100M' );
@ini_set( 'post_max_size', '100M');
It is not a very good practice and we don’t really recommend this because it can be unreliable. Also, on theme update you will lose your changes.
php_value max_execution_time 300
php_value max_input_time 300
php_value upload_max_filesize 100M
php_value post_max_size 100M
Again, we insist that these options might not work for all cases and most probably won’t work on shared hosting. Also, be prepared: some hosting providers might turn down your request.