Created
February 18, 2015 06:00
-
-
Save jamiemarsland/6f279aa9975c9121262b to your computer and use it in GitHub Desktop.
Make meta slider full width for storefront
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'child_theme_init' ); | |
function child_theme_init() { | |
add_action( 'storefront_before_content', 'woa_add_full_slider', 5 ); | |
} | |
function woa_add_full_slider() { ?> | |
<div id="slider"> | |
<?php echo do_shortcode("[metaslider id=388 percentwidth=100]"); ?> | |
</div> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please disregard.
I found it here:
https://themebynumbers.com/2017/07/26/add-a-slider-to-storefront/