WordPress.org

Ready to get started?Download WordPress

Forums

Frontpage-Slideshow
PHP code activating the slideshow in header.php (3 posts)

  1. blicht454
    Member
    Posted 3 years ago #

    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?

  2. jeff_
    Member
    Plugin Author

    Posted 3 years ago #

    As it has been explained here a lot of time : look at the "how to use" section of the plugin admin page.

  3. blicht454
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic