Hi @wooassist
I managed to make it work!
I first inserted this right after </header> to my child header.php:
<?php
do_action( 'storefront_after_header' ); ?>
Then I put your code in the child function.php file. I just changed “storefront_before_content” to “storefront_after_header” like this:
add_action( 'init', 'child_theme_init' );
function child_theme_init() {
add_action( 'storefront_after_header', 'woa_add_full_slider', 5 );
}
function woa_add_full_slider() { ?>
<div id="slider">
<?php echo do_shortcode("[metaslider id=388 percentwidth=100]"); ?>
</div>
<?php
}
Please let me know if it’s a good or not good way of doing this.
Thanks!