/**
* Adds wooslider into the storefront_before_content action in the parent themes header.php file.
*/
function sd_storefront_homepage_slider() {
// if not the StoreFront Homepage Page Template return false
if ( ! is_page_template( 'template-homepage.php' ) ) {
return false;
}
// Output the WooSlider Shortcode via the do_shortcode() function.
echo do_shortcode( '[wooslider]' );
}
add_action( 'storefront_before_content', 'sd_storefront_homepage_slider', 5 );