Home › Forums › Support › Slider above home page content but not as page header › Reply To: Slider above home page content but not as page header
December 16, 2015 at 10:08 am
#160393
Tom
Lead Developer
Lead Developer
Looks like I need to add another hook to GP Hooks.
For now, you can scrap using GP Hooks and add this function:
add_action( 'generate_inside_container','add_slider_to_container' );
function add_slider_to_container() {
if ( is_front_page() ) : ?>
<div class="grid-container">
[metaslider id=913]
</div>
<?php endif;
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/