Title: Functions.php file not working
Last modified: August 30, 2016

---

# Functions.php file not working

 *  [srhzaidi](https://wordpress.org/support/users/srhzaidi/)
 * (@srhzaidi)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/functionsphp-file-not-working/)
 * I have added the following code to my functions.php file, but my theme is only
   being shown as blank:
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . 'http://www.giftforgag.com/wp-content/themes/blaskan/style.css' );
   
       }
       ?>
       ```
   
 * Is there something wrong with the code?

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/functionsphp-file-not-working/#post-6436016)
 * [https://codex.wordpress.org/Function_Reference/get_template_directory_uri](https://codex.wordpress.org/Function_Reference/get_template_directory_uri)
 * don’t use the full url, just the file name;
 * i.e. try to change this:
 *     ```
       wp_enqueue_style( 'parent-style', get_template_directory_uri() . 'http://www.giftforgag.com/wp-content/themes/blaskan/style.css' );
       ```
   
 * to:
 *     ```
       wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
       ```
   
 * for details, please ask in your prent theme’s forum at [https://wordpress.org/support/theme/blaskan#postform](https://wordpress.org/support/theme/blaskan#postform)
 *  Thread Starter [srhzaidi](https://wordpress.org/support/users/srhzaidi/)
 * (@srhzaidi)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/functionsphp-file-not-working/#post-6436047)
 * I have posted this question in the theme’s forum. Let’s hope for a response.

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

The topic ‘Functions.php file not working’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [srhzaidi](https://wordpress.org/support/users/srhzaidi/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/functionsphp-file-not-working/#post-6436047)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
