Title: Problem adding Flexslider
Last modified: August 21, 2016

---

# Problem adding Flexslider

 *  [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * (@jerome2011)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-adding-flexslider/)
 * Hi,
    I’m trying to get a flexslider working on a single post page (all the attachments
   of the post should go in the slider). I’m now setting up the flexslider with 
   direct links to images to test it but I can’t get the slider to work properly.
   This is what I’ve done:
 * in my Functions.php file I added:
 *     ```
       //Flexslider CSS
       function theme_styles() {
       	wp_enqueue_style('flexslider',get_template_directory_uri().'/css/flexslider.css');
       }
       add_action ('wp_enqueue_scripts','theme_styles');
   
       //Flexslider js
       function theme_js() {
       	wp_enqueue_script('jquery.flexslider-min',get_template_directory_uri().'/js/flexslider.js', array('jquery'),'',true);
       	wp_enqueue_script('theme_js',get_template_directory_uri().'/js/theme_js.js', array('jquery'),'', true );
       }
       add_action('wp_enqueue_scripts','theme_js');
       ```
   
 * I get the flexslider files linked in my footer.
    To just test it I added the 
   following to my single post:
 *     ```
       <div class="flexslider">
         <ul class="slides">
           <li>
             <img src="...dummydirectory/bg_coming_soon.jpg" />
           </li>
           <li>
             <img src="...dummydirectory/bg_coming_soon.jpg" />
           </li>
           <li>
             <img src="...dummydirectory/bg_coming_soon.jpg" />
           </li>
           <li>
             <img src="...dummydirectory/bg_coming_soon.jpg" />
           </li>
         </ul>
       </div>
       ```
   
 * When I go to the page I see the the slider is loaded (with correct css styles)
   but none of the images are showing. So I actually receive a small container (
   full width) with a really small height and no images…
 * Does someone see what I’m doing wrong here?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * (@jerome2011)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-adding-flexslider/#post-4324520)
 * code for js files in functions.php is:
 *     ```
       //Flexslider js
       function theme_js() {
       	wp_enqueue_script('flexslider',get_template_directory_uri().'/js/flexslider.js', array('jquery'),'',true);
       	wp_enqueue_script('theme_js',get_template_directory_uri().'/js/theme_js.js', array('jquery'),'', true );
       }
       add_action('wp_enqueue_scripts','theme_js');
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Problem adding Flexslider’ is closed to new replies.

## Tags

 * [flexslider](https://wordpress.org/support/topic-tag/flexslider/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jerome2011](https://wordpress.org/support/users/jerome2011/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/problem-adding-flexslider/#post-4324520)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
