Title: functions.php problem
Last modified: August 31, 2016

---

# functions.php problem

 *  [CarbonOwl](https://wordpress.org/support/users/carbonowl/)
 * (@carbonowl)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/functionsphp-problem-6/)
 * Hi All,
 * I have recently created a child theme from my parent ‘founder’, the functions.
   php currently has the following code
 * <?php
    // Exit if accessed directly if ( !defined( ‘ABSPATH’ ) ) exit;
 * // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment
   markers above or below:
 * if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
    function chld_thm_cfg_parent_css(){
   wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri()).‘
   style.css’ ); } endif; add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’);
 * // END ENQUEUE PARENT ACTION
 * I am trying to add the following code in order to add another sidebar
 * <?php
    add_action( ‘widgets_init’, ‘child_register_sidebar’ );
 * function child_register_sidebar(){
    register_sidebar(array( ‘name’ => ‘Sidebar
   2’, ‘id’ => ‘sidebar-2’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$
   s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4 class=”widgettitle”>’,‘
   after_title’ => ‘</h4>’, )); } ?>
 * However whereever i seem to add it in the functions.php file it corrupts the 
   website so it will no longer display and I get a server error 500
 * Any help would be greatly appreciated
 * Thanks

The topic ‘functions.php problem’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [CarbonOwl](https://wordpress.org/support/users/carbonowl/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/functionsphp-problem-6/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
