Title: Do I enqueue php files?
Last modified: August 23, 2017

---

# Do I enqueue php files?

 *  Resolved [nicerice](https://wordpress.org/support/users/nicerice/)
 * (@nicerice)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/do-i-enqueue-php-files/)
 * I’m trying to properly add scripts and styles to my theme through enqueue of 
   the style and scripts. The guide I’m mentioning have just these lines of code:
 *     ```
       function startwordpress_scripts() {
       	wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '4.0.0' );
       	wp_enqueue_style( 'blog', get_template_directory_uri() . '/css/blog.css' );
       	wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '4.0.0', true );
   
       }
       ```
   
 * This is linking to the bootstrap template and blog.css in folder within the root.
   However, don’t I have to make separate enqueue styles for the other .php files
   like the Index, Header, Footer? If not, do I make all edits within the blog.css
   if I want to change the appearance of my site? When should I add the code to 
   the php files compared to the css file?
 * Thank you.
    -  This topic was modified 8 years, 9 months ago by [nicerice](https://wordpress.org/support/users/nicerice/).
    -  This topic was modified 8 years, 9 months ago by [nicerice](https://wordpress.org/support/users/nicerice/).

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

 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/do-i-enqueue-php-files/#post-9432013)
 * You may be in over your head: [https://www.google.com/search?q=creating+a+wordpress+theme&ie=utf-8&oe=utf-8](https://www.google.com/search?q=creating+a+wordpress+theme&ie=utf-8&oe=utf-8)
 * You enqueue styles and scripts. You modify the way html elements look with css
   and you lay out the templates where you want the html to appear in your PHP templates.
 *  Thread Starter [nicerice](https://wordpress.org/support/users/nicerice/)
 * (@nicerice)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/do-i-enqueue-php-files/#post-9432073)
 * Thanks, I know it’s a headslap for you but what you just said cleared a lot of
   muddy details for me. I’m going to keep on trucking.
 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/do-i-enqueue-php-files/#post-9432248)
 * I started by building a bootstrap theme from scratch following a tutorial I found
   on Google. Keep at it and ask as many questions as you can –

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

The topic ‘Do I enqueue php files?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/do-i-enqueue-php-files/#post-9432248)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
