Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add Slider to Storefront Content Top
<?php
add_action( 'storefront_content_top', 'marce_custom_slider_storefront' );
function marce_custom_slider_storefront() {
if ( is_front_page() ) {
echo do_shortcode("[metaslider id=586]");
}
else {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment