Skip to content

Instantly share code, notes, and snippets.

@jamiemarsland
Created February 18, 2015 06:00
Show Gist options
  • Save jamiemarsland/6f279aa9975c9121262b to your computer and use it in GitHub Desktop.
Save jamiemarsland/6f279aa9975c9121262b to your computer and use it in GitHub Desktop.
Make meta slider full width for storefront
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
}
@yumiko7
Copy link

yumiko7 commented Mar 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment