Title: Child theme issue
Last modified: August 22, 2016

---

# Child theme issue

 *  [PitaMaria](https://wordpress.org/support/users/pitamaria/)
 * (@pitamaria)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/child-theme-issue-7/)
 * My site uses a theme from Pego named Clearix. My attempts to use a child theme
   based on it have been unsuccessful.
 * I’m attempting to use [the method recommended in the Codex](http://codex.wordpress.org/Child_Themes):“
   The correct method of enqueuing the parent theme stylesheet is to use wp_enqueue_script()
   in your child theme’s _functions.php_.”
 * For reference, here’s how Pego enques their parent stylesheet _styles.css_ (you’ll
   see that other stylesheets are used in this theme but this main one is the only
   one I need to overrule) …
 *     ```
       function pego_theme_styles() {
       		global $pego_prefix;
       		wp_enqueue_style( 'flexslider-style', get_template_directory_uri() . '/css/flexslider.css', array(), '1.0', 'all' );
       		wp_enqueue_style( 'widgets-style', get_template_directory_uri() . '/css/widgets.css', array(), '1.0', 'all' );
       		wp_enqueue_style( 'icons-style', get_template_directory_uri() . '/css/icons.css', array(), '1.0', 'all' );
       		wp_enqueue_style( 'default-style', get_template_directory_uri() . '/style.css', array(), '1.0', 'all' );
       		 if ( is_admin() ) {
               	wp_enqueue_style('admin-style', get_template_directory_uri() .'/css/admin-style.css',  false, '1.0', 'all');
               }
       		if ( function_exists( 'ot_get_option' ) ) {
       			if (ot_get_option('clearix_layout_type') == 'boxed') {
       				wp_enqueue_style( 'boxed-style', get_template_directory_uri() . '/css/boxed.css', array(), '1.0', 'all' );
       			}
       		}
               wp_enqueue_style( 'media-style', get_template_directory_uri() . '/css/media.css', array(), '1.0', 'all' );
       	}
       	add_action('wp_enqueue_scripts', 'pego_theme_styles');
       ```
   
 * … and here’s the code I’m using in my child theme’s _functions.php_:
 *     ```
       function theme_enqueue_styles() {
           wp_enqueue_style( 'default-style', get_template_directory_uri() . '/style.css', array(), '1.0', 'all' );
       }
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       ```
   
 * Also for reference, here’s the top of my child’s _styles.css_:
 *     ```
       /*
        Theme Name:   Clearix Child
        Theme URI:    http://staging.parkhillvet.com/wp-content/themes/clearix-child/
        Description:  Clearix Child Theme
        Author:       Andy Campbell Creative
        Author URI:   andycampbellcreative [at] gmail [dot] com
        Template:     clearix
        Version:      1.2
        License:      GNU General Public License v2 or later
        License URI:  http://www.gnu.org/licenses/gpl-2.0.html
       */
       ```
   
 * That “Template” line features “clearix” — that is exactly how the parent theme’s
   file directory is named.
 * What am I doing wrong here? Apologies if this information may be found somewhere
   on the Codex — I searched and couldn’t find anything that helped — or if I’ve
   left any information out.
 * My site may be found at [http://staging.parkhillvet.com](http://staging.parkhillvet.com).
   It’s currently using the parent theme until I lick this issue; let me know if
   it needs to be set to the child in order to diagnose this issue.
 * Thanks in advance for any time spent diagnosing this.

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/child-theme-issue-7/#post-5694758)
 * Have you asked the developer of the theme? They’d really be the best ones to 
   advise you since these forums have no way to help with commercial themes.
 * [http://codex.wordpress.org/Forum_Welcome#Commercial_Products](http://codex.wordpress.org/Forum_Welcome#Commercial_Products)
 *  Thread Starter [PitaMaria](https://wordpress.org/support/users/pitamaria/)
 * (@pitamaria)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/child-theme-issue-7/#post-5694760)
 * [@wpyogi](https://wordpress.org/support/users/wpyogi/): I have indeed asked them
   but their policy is to support only issues with their product and not “global
   WordPress installation issues.” If I can’t get support here I may ask them to
   supply child theme files on which to build; just wanted to check here to see 
   if it’s one of those things a forum volunteer like yourself could spot in one
   second.

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

The topic ‘Child theme issue’ is closed to new replies.

## Tags

 * [child](https://wordpress.org/support/topic-tag/child/)
 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)
 * [enqueuing](https://wordpress.org/support/topic-tag/enqueuing/)
 * [parent](https://wordpress.org/support/topic-tag/parent/)
 * [parent theme](https://wordpress.org/support/topic-tag/parent-theme/)

 * 2 replies
 * 2 participants
 * Last reply from: [PitaMaria](https://wordpress.org/support/users/pitamaria/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/child-theme-issue-7/#post-5694760)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
