Title: [Plugin: Frontpage-Slideshow] PHP code activating the slideshow in header.php
Last modified: August 19, 2016

---

# [Plugin: Frontpage-Slideshow] PHP code activating the slideshow in header.php

 *  [blicht454](https://wordpress.org/support/users/blicht454/)
 * (@blicht454)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-frontpage-slideshow-php-code-activating-the-slideshow-in-headerphp/)
 * If I wanted to place a snippet of code in header.php instead of using the shortcode
   on a page / post, what would that code be?

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

 *  Plugin Author [jeff_](https://wordpress.org/support/users/jeff_/)
 * (@jeff_)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-frontpage-slideshow-php-code-activating-the-slideshow-in-headerphp/#post-1871417)
 * As it has been explained here a lot of time : look at the “how to use” section
   of the plugin admin page.
 *  Thread Starter [blicht454](https://wordpress.org/support/users/blicht454/)
 * (@blicht454)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-frontpage-slideshow-php-code-activating-the-slideshow-in-headerphp/#post-1871420)
 * Thanks, got it. The full php code wasn’t there, and I wasn’t familiar with how
   to properly write an echo.
 * Here it is, if anyone needs it later:
 * `<?php echo do_shortcode('[FrontpageSlideshow]'); ?>`
 * Then you can use the options given when you customize the slideshow.
 * For example:
 * `<?php echo do_shortcode('[FrontpageSlideshow fs_cats=12 fs_slides=28 fs_show_buttons
   =0 fs_show_prevnext_buttons=0 fs_main_width=600px fs_main_height=450px fs_slide_width
   =100% fs_buttons_width=0% fs_main_border_color= fs_orderby=rand fs_show_comment
   =0 fs_rounded=0 fs_template=default]'); ?>`
 * Thanks jeff

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

The topic ‘[Plugin: Frontpage-Slideshow] PHP code activating the slideshow in header.
php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontpage-slideshow.svg)
 * [Frontpage-Slideshow](https://wordpress.org/plugins/frontpage-slideshow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontpage-slideshow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontpage-slideshow/)
 * [Active Topics](https://wordpress.org/support/plugin/frontpage-slideshow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontpage-slideshow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontpage-slideshow/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [blicht454](https://wordpress.org/support/users/blicht454/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-frontpage-slideshow-php-code-activating-the-slideshow-in-headerphp/#post-1871420)
 * Status: not resolved