Title: adding slider to php template
Last modified: August 22, 2016

---

# adding slider to php template

 *  Resolved [kaylink](https://wordpress.org/support/users/kaylink/)
 * (@kaylink)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/adding-slider-to-php-template/)
 * I am creating a custom theme template. I want to use the image slider but only
   on the home page. I need it to be in a specific div. Is there a way to use the
   URIS code in the template php pages?
 * [https://wordpress.org/plugins/ultimate-responsive-image-slider/](https://wordpress.org/plugins/ultimate-responsive-image-slider/)

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

 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871684)
 * Hello Kaylink,
 * If you want to display your slider on front page then you have to need update
   some code in plugin file.
 * Follow my steps here-
 * Step-1 : Open your plugin directory, now open **ultimate-responsive-image-slider**
   folder
 * Step-2 : Now open file **ultimate-responsive-image-slider.php** on any editor.
 * Step-3 : Now go at near line no. 43, check this [screenshot](http://s3.postimg.org/asayoqxn7/update_before_code.png).
   Code is display in file like mention in screenshot code.
 * Step-4 : Now update file, do comment line no. 43, 44, 54,55,56 . Just like mention
   in this [screenshot 2](http://s24.postimg.org/xeesscorp/update_after_code.png).
 * Step-5 : Finally save your file.
 * Step-6 : Now use this php code to display your slider on front page
 *     ```
       <?php echo do_shortcode( '[URIS id=265]' ); ?>
       ```
   
 * Here id is your **slider id**.
 * So use this code for display slider on front page but after doing all above process.
 * Let me know if you getting any problem regarding plugin in future.
 * Thanks
 *  [sock2me](https://wordpress.org/support/users/sock2me/)
 * (@sock2me)
 * [11 years ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871767)
 * When I open my copy of ultimate-responsive-image-slider.php, it looks exactly
   like your screenshot. Am I to understand that you now made change to the files?
   I am confused.
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [11 years ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871768)
 * Hi Sock2me,
 * Please refer the updated screenshot according to plugin version 1.2.
 * Comment line no. 44, 45 and 55, 56, 57
 * **[Screenshot](http://s11.postimg.org/n936uppbn/comment_code_to_embed_slider_in_php_template_sna.png)**
 * Thanks
    Weblizar
 *  Anonymous User 12711743
 * (@anonymized-12711743)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871786)
 * Hi i have similar problems and have tried the steps. its not working for me at
   all. and also some of your screenshots that you have uploaded is not viewable
   at all.
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871787)
 * Hello i1c2z3y4l5,
 * Please contact me at **lizarweb[at]gmail[dot]com**.
 * Thanks
 *  Anonymous User 12711743
 * (@anonymized-12711743)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871788)
 * Hi sorry it does work! its my fault =D
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871789)
 * Great to hear that.
 * Let me know if we can do there anything else for you today. We’ll glad to help!
 * If you are enjoying our Ultimate Responsive Image Slider plugin and find it useful,
   then please consider to write your positive Feedback.
 * Thanks
 *  [Keryn](https://wordpress.org/support/users/b-summers/)
 * (@b-summers)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871791)
 * Won’t we have to redo this every time the plugin is updated?
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871795)
 * Yes, it’s required.
 * Otherwise required JS & CSS will not on php template file.
 * Try to overcome this issue in next update.
 * Thanks
    Weblizar
 *  [erobbins](https://wordpress.org/support/users/erobbins/)
 * (@erobbins)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871799)
 * Hello,
    I tried to follow these steps and could not get it to work. When you 
   say to use the php code ‘<?php echo do_shortcode( ‘[URIS id 265]’ ); ?>’ you 
   are talking about copying and pasting that into the created widget? I did that
   and could not get it to work. 🙁 I feel that I followed the steps correctly, 
   but maybe I am isunderstanding where to put the php code? t Thank you, Elaine
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871800)
 * Hello Erobbins,
 * If you want to display slider in widget then check this previous thread –
 * [https://wordpress.org/support/topic/slider-in-widget?replies=12](https://wordpress.org/support/topic/slider-in-widget?replies=12)
 * Thanks
 *  [whatupwithit](https://wordpress.org/support/users/whatupwithit/)
 * (@whatupwithit)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871814)
 * Hello weblizar, can you show me an example of how to do this with the latest 
   patch, It seems like the newest php file already has that all cut out of it so
   will it just work on its own, also where can I find slider id
 * Thanks
    -sam
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871815)
 * Hi,
 * Check this [screenshot ](http://s4.postimg.org/lxn8rhh9p/find_id.png)for find
   the id.
 * Paste below php code for display slider using php code.
 * `<?php echo do_shortcode( '[URIS id=265]' ); ?>`
 * Thanks
 *  [Zaeo1137](https://wordpress.org/support/users/zaeo1137/)
 * (@zaeo1137)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871818)
 * I solved this issue with another method:
 * <?php
    if( is_front_page() ) { echo do_shortcode(‘[URIS id=46]’); } ?>
 * Should be a nice alternative than modifying the plugin files, which will get 
   overwritten with a new version.
 *  [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * (@weblizar)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871819)
 * Great you made it.

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

The topic ‘adding slider to php template’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-responsive-image-slider/assets/icon-128x128.gif?
   rev=2305926)
 * [Ultimate Responsive Image Slider](https://wordpress.org/plugins/ultimate-responsive-image-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-responsive-image-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-responsive-image-slider/reviews/)

 * 15 replies
 * 8 participants
 * Last reply from: [Weblizar – WordPress Themes & Plugin](https://wordpress.org/support/users/weblizar/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/adding-slider-to-php-template/#post-5871819)
 * Status: resolved