If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)


Featured templates

How to upload large images in WordPress

Have you tried to add large images to your WordPress website? The most likely you will get something like that ‘image_file_name.jpg exceeds the maximum upload size for this site’.

Large images take a long time to load, this affects your site speed. A site with huge images is not ranked well by search engines.

The best decision is to do an image optimization. You can easily resize and make your image larger without losing quality.

We understand that this issue could be considered not a solution for you. We are going to show how to increase the memory limit.

You hosting provider can set up certain file upload limit from their side. You can check this limit in your admin panel under the Media > Add New section.

We will show you a few simple step steps that could help. To resolve this case you will need to increase upload maximum file size, post maximum size, and maximum execution time limits for your website.We strongly recommend you to contact your hosting provider and ask them to change those values for you. Otherwise, you can do the following:

  1. Edit functions.php file. That file usually located in your theme directory (wp-content/themes/themeXXX, where themeXXX is your theme name). You can access that file from your server. Connect to your server using FTP or hosting Cpanel. Add following code to the file:

    @ini_set( 'upload_max_size' , '64M' );
    @ini_set( 'post_max_size', '64M');
    @ini_set( 'max_execution_time', '300' );

    This solution may not work for some WordPress websites. In this case please try to edit the next files.

  2. In case you use Apache Web Server feel free to edit server configuration file called .htaccess. Just change or add following code to your file:

    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300
  3. If both methods didn’t work edit php.ini file. The php.ini file is where you declare changes to your PHP settings. This file could be hidden. Nevertheless, you can create an empty php.ini file with the following content:

    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 300

    Still no luck? Some providers block their users from changing these settings. Be sure to contact your provider and ask them to adjust settings for you.

That is it! You know how to upload large images to WordPress now. We will show you more interesting hacks soon.

We would also recommend you to view our premium WordPress Themes in case you need a wider choice of website building solutions.

Live Chat
We help you to choose the right product.
Start chat