Title: Child Theme and functions.php
Last modified: August 24, 2016

---

# Child Theme and functions.php

 *  Resolved [akacruiseman](https://wordpress.org/support/users/akacruiseman/)
 * (@akacruiseman)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/child-theme-and-functionsphp-2/)
 * Nobita,
    If I create a functions.php in the Child Theme folder will this totally
   overwrite the Main Theme functions.php OR will it use the Main Theme and only
   the code from the Child Theme? Thanks, Jim

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/child-theme-and-functionsphp-2/#post-6031258)
 * If you have a functions.php child theme activated and you were to just delete
   all the code I believe it would crash the site etc.
 * That would be my guess.
 *  Theme Author [nobita](https://wordpress.org/support/users/nobita/)
 * (@nobita)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/child-theme-and-functionsphp-2/#post-6031320)
 * Hi akacruiseman
 * first read the functions.php of child theme, and then read the functions.php 
   of parent theme.
 * php functions and variables of the parent theme, has been described in the pluggable.
 * for example
 * write your child themes functions.php
 * if you overwrite function raindrops_posted_on()
 *     ```
       function raindrops_posted_on() {
   
        echo 'Your message';
       }
       ```
   
 * Of course, You can use the filter
 *     ```
       add_filter( 'raindrops_posted_on', 'my_posted_on' );
       function my_posted_on( $posted_on_html ) {
   
        return 'Your message 2';
   
        //return $posted_on_html;
       }
       ```
   
 * both same result.
 * If you change default settings of parent functions vars.
 *     ```
       add_action( 'raindrops_last','my_custom_settings' );
   
       function my_custom_settings(){
        global $your_var;
         $your_var = 'your value';
       }
       ```
   
 * Since I believe that important customization of from child theme, if you have
   any problem, please tell me.
 * Thank you.
 * [@erik](https://wordpress.org/support/users/erik/)
 * Please create new post and tell me your functions.php settings. 🙂
 *  [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/child-theme-and-functionsphp-2/#post-6031346)
 * [@nobita](https://wordpress.org/support/users/nobita/) I not have a question,
   was attempting to help [@akacruiseman](https://wordpress.org/support/users/akacruiseman/)
 *  Thread Starter [akacruiseman](https://wordpress.org/support/users/akacruiseman/)
 * (@akacruiseman)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/child-theme-and-functionsphp-2/#post-6031349)
 * Thanks [@erik](https://wordpress.org/support/users/erik/) and [@nobita](https://wordpress.org/support/users/nobita/).
   
   Although this all gave me a headache it has “forced” me to learn more.
 * Closing this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Child Theme and functions.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/raindrops/1.700/screenshot.png)
 * raindrops
 * [Support Threads](https://wordpress.org/support/theme/raindrops/)
 * [Active Topics](https://wordpress.org/support/theme/raindrops/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/raindrops/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/raindrops/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [akacruiseman](https://wordpress.org/support/users/akacruiseman/)
 * Last activity: [10 years, 12 months ago](https://wordpress.org/support/topic/child-theme-and-functionsphp-2/#post-6031349)
 * Status: resolved