For increasing a memory limit for WordPress, need to edit the wp-config.php file on your WordPress site. Editing wp-config.php file perform below steps.
- Connect with your server using FTP or cPanel.
- Open file manager
- Open wp-config.php file in editor. (path: ROOT/wp-config.php)
- Add below code in wp-config.php file
- define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
- Save that file after change memory size.
Note: If this solution is not working, then it means your web hosting service provider does not allow WordPress to increase PHP memory limit. You will need to ask your web hosting provider to increase your PHP memory limit manually.