How to create a wp-config.php file in the child theme

Hi! I have installed the PRO child theme following this: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57

The child theme includes functions.php and style.css, but not wp-config.php. So how can I add it if possible?

The exact request is coming from the WPML support and says like this:

You can add this to wp-config.php to increase WP memory:

/** Memory Limit */

define('WP_MEMORY_LIMIT', '128M');

define( 'WP_MAX_MEMORY_LIMIT', '128M' );

The wp-config.php is in the root Directory from your Wordpresst and not a part of the Theme. In Wp-config you can change some Seetings for Wordpress global.

Hi @educainventions,

Just like what @The-E-Blog mentioned, you do not have to recreate the wp-config.php file in the child theme as if it part of the code files of Wordpresss and has nothing to do with the theme.

You can simply edit the wp-config.php file in the root directory of your site and add the code that was given to you.

Hope this helps.

Done! Thanks for the clarification!!! :slight_smile:

If you need anything else please let us know.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.