Title: Using the PHP code
Last modified: August 21, 2016

---

# Using the PHP code

 *  Resolved [wesleyjb7](https://wordpress.org/support/users/wesleyjb7/)
 * (@wesleyjb7)
 * [12 years ago](https://wordpress.org/support/topic/using-the-php-code/)
 * Hey, I’m new to PHP at this stage and would like to know if there is any way 
   you could let me know where exactly to insert the php code if i want to use it
   as a banner on the home page of my site?
 * [https://wordpress.org/plugins/master-slider/](https://wordpress.org/plugins/master-slider/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [averta](https://wordpress.org/support/users/averta/)
 * (@averta)
 * [12 years ago](https://wordpress.org/support/topic/using-the-php-code/#post-5123036)
 * Hi
 * You need to edit header.php file of your theme and insert
 *     ```
       echo get_masterslider(1);
       ```
   
 * where you want to display the slider.
 * Regards

Viewing 1 replies (of 1 total)

The topic ‘Using the PHP code’ is closed to new replies.

 * ![](https://ps.w.org/master-slider/assets/icon-256x256.png?rev=1638064)
 * [Master Slider - Responsive Touch Slider](https://wordpress.org/plugins/master-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/master-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/master-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/master-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/master-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/master-slider/reviews/)

## Tags

 * [assist](https://wordpress.org/support/topic-tag/assist/)
 * [banner](https://wordpress.org/support/topic-tag/banner/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [averta](https://wordpress.org/support/users/averta/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/using-the-php-code/#post-5123036)
 * Status: resolved