Title: Undefined variable
Last modified: October 17, 2017

---

# Undefined variable

 *  [benz1](https://wordpress.org/support/users/benz1/)
 * (@benz1)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-48/)
 * Just used this plugin to create a child theme the Elegant Themes, Extra theme.
   Simple to use but after activating the child theme I’m getting the following 
   undefined variable:
 * Notice: Undefined variable: parent_style in /home/xxxx/public_html/xxxxxxx/wp-
   content/themes/Extra-Child/functions.php on line 13
 * Any suggestions how to fix this?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [benz1](https://wordpress.org/support/users/benz1/)
 * (@benz1)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-48/#post-9596277)
 * I removed the line
 * > wp_enqueue_style(‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’,
   > array($parent_style));
 * from the functions.php which has got rid of the undefined error and doesn’t appear
   to make any difference to the site. Is it okay to remove it?

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable’ is closed to new replies.

 * ![](https://ps.w.org/child-theme-wizard/assets/icon-256x256.png?rev=984426)
 * [Child Theme Wizard](https://wordpress.org/plugins/child-theme-wizard/)
 * [Support Threads](https://wordpress.org/support/plugin/child-theme-wizard/)
 * [Active Topics](https://wordpress.org/support/plugin/child-theme-wizard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/child-theme-wizard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/child-theme-wizard/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [benz1](https://wordpress.org/support/users/benz1/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-48/#post-9596277)
 * Status: not resolved