Title: Child Theme not linking
Last modified: August 30, 2016

---

# Child Theme not linking

 *  [jmabluez79](https://wordpress.org/support/users/jmabluez79/)
 * (@jmabluez79)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-not-linking/)
 * I’ve been searching and trying but for some reason I can’t get my style sheet
   to work.
 * It’s an active theme but every time I try to make a change nothing changes on
   my site.
 *     ```
       /*
        Theme Name:   Twenty Eleven Child
        Theme URI:http://sevenoaksoralsurgery.com/folder/folder/folder/folder/folder/twentyeleven-child/
        Description:  Twenty Eleven Child Theme
        Template:     twentyEleven
        Version:      1.0.0
        Text Domain:  twenty-eleven-child
       */
   
       body, input, textarea {
       	color: #00ffff;
       	font: 3px "Roboto Slab", serif;
       	font-weight: 300;
       	line-height: 1.625;
       }
       ```
   
 * I’m just trying to get something to change in my twentyeleven theme.
 * My function page contains this. For the link.
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
       }
       ```
   
 * Please help. Thank you.
 * [Moderator note: code fixed. Please wrap code in the backtick character or [use the code button](https://codex.wordpress.org/Forum_Welcome#Posting_Code).]

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

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-not-linking/#post-6374941)
 * It appears you are only loading the parent theme stylesheet.
 * Try adding the following code inside of your `wp_enqueue_scripts` callback:
 *     ```
       wp_enqueue_style( 'child', get_stylesheet_uri() );
       ```
   
 *  Thread Starter [jmabluez79](https://wordpress.org/support/users/jmabluez79/)
 * (@jmabluez79)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-not-linking/#post-6374947)
 * Thanks for responding Jose. I still can’t seem to get it working. Is this how
   the new function page should look?
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
           wp_enqueue_style( 'child', get_stylesheet_uri() );
       }
       ```
   
 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-not-linking/#post-6374948)
 * Correct.
 *  Thread Starter [jmabluez79](https://wordpress.org/support/users/jmabluez79/)
 * (@jmabluez79)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-not-linking/#post-6375141)
 * Thanks Jose!

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

The topic ‘Child Theme not linking’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [jmabluez79](https://wordpress.org/support/users/jmabluez79/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/child-theme-not-linking/#post-6375141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
