# Only one static image for slider

**URL:** <https://colorlibsupport.com/t/only-one-static-image-for-slider/8239>\
**Category:** Dazzling\
**Created:** [October 27, 2015, 9:12am UTC](https://colorlibsupport.com/t/only-one-static-image-for-slider/8239 "2015-10-27T09:12:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria90](https://colorlibsupport.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@maria90](https://colorlibsupport.com/u/maria90)\
**Post date:** [October 27, 2015, 9:12am UTC](https://colorlibsupport.com/t/only-one-static-image-for-slider/8239/1 "2015-10-27T09:12:51Z")

</div>

Hi,  
I was wondering if it is possible to set just one static image for the slider, so more like a banner than a slider. Also if it is possible to just upload that image and not pull it from a previous post

Thanks

---

<div class="post-metadata">

**Author:** ![movin](https://colorlibsupport.com/user_avatar/colorlibsupport.com/movin/32/10922_2.png) [@movin](https://colorlibsupport.com/u/movin)\
**Post date:** [November 2, 2015, 6:43am UTC](https://colorlibsupport.com/t/only-one-static-image-for-slider/8239/2 "2015-11-02T06:43:27Z")

</div>

Hi @maria90,

I hope you are well today and thank you for your question.

Yes you can display the static image for the slider not pulling it from the post by using the attached child theme of Dazzling theme that contains the following custom code in the functions.php file of it.

```auto
/**
 * Featured image slider
 */
function dazzling_featured_slider() {
    if ( is_front_page() && of_get_option('dazzling_slider_checkbox') == 1 ) {
      echo '<div class="flexslider">';
        echo '<ul class="slides">';
           echo '<li>';
           	echo '<img src="http://yoursite.com/wp-content/uploads/2015/08/image.jpg" />';
           echo '</li>';
        echo '</ul>';
      echo ' </div>';
    }
}

```

Change the image file URL [http://yoursite.com/wp-content/uploads/2015/08/image.jpg](http://yoursite.com/wp-content/uploads/2015/08/image.jpg) in the above code of the child theme to the image URL that you wan to display there.

Best Regards,  
Movin
