Title: roscfi's Replies | WordPress.org

---

# roscfi

  [  ](https://wordpress.org/support/users/roscfi/)

 *   [Profile](https://wordpress.org/support/users/roscfi/)
 *   [Topics Started](https://wordpress.org/support/users/roscfi/topics/)
 *   [Replies Created](https://wordpress.org/support/users/roscfi/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/roscfi/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/roscfi/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/roscfi/engagements/)
 *   [Favorites](https://wordpress.org/support/users/roscfi/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem Getting Child Theme Functions.php Right](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/)
 *  [roscfi](https://wordpress.org/support/users/roscfi/)
 * (@roscfi)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/#post-11645909)
 * [@oscarguy](https://wordpress.org/support/users/oscarguy/) any news?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem Getting Child Theme Functions.php Right](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/)
 *  [roscfi](https://wordpress.org/support/users/roscfi/)
 * (@roscfi)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/#post-11566582)
 * You’re calling a function twice with the add action.
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
       function my_theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
       }
       add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
       function my_theme_enqueue_styles() {...
       ```
   
 * And I think that’s not going to works well.
    Try to replace the code you have
   in your functions.php for:
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
       function my_theme_enqueue_styles() {
   
           $parent_style = 'frontier-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
   
           wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
           wp_enqueue_style( 'child-style',
               get_stylesheet_directory_uri() . '/style.css',
               array( $parent_style ),
               wp_get_theme()->get('Version')
           );
       }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem Getting Child Theme Functions.php Right](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/)
 *  [roscfi](https://wordpress.org/support/users/roscfi/)
 * (@roscfi)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/#post-11559974)
 * I’ve take a look in the [Child Theme](https://developer.wordpress.org/themes/advanced-topics/child-themes/)
   page of WordPress and at a child theme I’ve created. I think you should put the
   string “frontier-style” as it says in the comment after the $parent_style variable
   for the Twenty Fifteen Theme. I let my child-style as it is in the code in the
   Child Theme WordPress page.
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
       function my_theme_enqueue_styles() {
   
           $parent_style = '<strong>frontier-style</strong>'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
   
           wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
           wp_enqueue_style( 'child-style',
               get_stylesheet_directory_uri() . '/style.css',
               array( $parent_style ),
               wp_get_theme()->get('Version')
           );
       }
       ```
   
    -  This reply was modified 7 years, 2 months ago by [roscfi](https://wordpress.org/support/users/roscfi/).
      Reason: Make it clearly
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem Getting Child Theme Functions.php Right](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/)
 *  [roscfi](https://wordpress.org/support/users/roscfi/)
 * (@roscfi)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/#post-11536027)
 * Please, take a look in your browser inspector and see in the **network** tab 
   what is the state of the **style.css**, if there is a style.css with status 404,
   try to activate another theme and then activate again your child-theme.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem Getting Child Theme Functions.php Right](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/)
 *  [roscfi](https://wordpress.org/support/users/roscfi/)
 * (@roscfi)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/problem-getting-child-theme-functions-php-right/#post-11519696)
 * Hey guy! What are you trying to do? A child Theme?

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