Title: add css  problem
Last modified: August 22, 2016

---

# add css problem

 *  [sajeeb71](https://wordpress.org/support/users/sajeeb71/)
 * (@sajeeb71)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/add-css-problem/)
 * convert html template to wordpress i use ‘functions.php’ to call css . here is
   the code of ‘functions.php’- that i used
 * <?php
    function my_function_name(){
 *  wp_register_style(‘bootstrap’,
    get_template_directory_uri() .’/css/bootstrap.
   min.css’, array(),’3.1.0′,’all’ ); wp_enqueue_style(‘bootstrap’);
 * }
    add_action(‘ wp_enqueue_scripts’,’my_function_name’);
 * ?>
 * but css didnot call at wordpress. is there anything add at index.php for css 
   stylesheet ?

Viewing 1 replies (of 1 total)

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/add-css-problem/#post-5628221)
 * It’s the space in the `add_action()` line. It should be
 * `add_action('wp_enqueue_scripts','my_function_name');`
 * Notice the lack of space between the single quote and the `wp_enqueue_scripts`.

Viewing 1 replies (of 1 total)

The topic ‘add css problem’ is closed to new replies.

## Tags

 * [CSS problem](https://wordpress.org/support/topic-tag/css-problem/)
 * [function.php](https://wordpress.org/support/topic-tag/function-php/)

 * 1 reply
 * 2 participants
 * Last reply from: [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/add-css-problem/#post-5628221)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
