Reset default media upload file size limit in WordPress
Default media upload size in wordpress is 2MB.
But it is very low for posting high resolution images. So we need to increase media upload limit. You can reset the limit by doing 3 steps.
Please keep in mind, you must keep a backup copy before any changes.
Step-1: Editing function.php file
Go to your theme folder and find function.php then paste the following codes end of file.
@ini_set( ‘upload_max_size’ , ’16M’ );
@ini_set( ‘post_max_size’, ’16M’);
@ini_set( ‘max_execution_time’, ‘300’ );
Step-2: Edit php.ini file
Go to your root folder and find php.ini file and then paste the following codes. If you don’t found just create a file there and save it php.ini
upload_max_filesize = 16M
post_max_size = 16M
max_execution_time = 300
Step-3: Edit .htaccess file
Go to root folder and edit .htaccess file and paste the following codes end of the > symbol.
php_value upload_max_filesize 16M
php_value post_max_size 16M
php_value max_execution_time 300
php_value max_input_time 300
Hopefully you may overcome the difficulties.
Any query just though a comment.