Creating a Landing Page Template in Genesis
Today we will learn how to create a landing page template in Genesis framework. In my example I will remove the headers, navigation and sidebars.
<?php /* Template Name: Landing Page w/o headers F/W */ /** Remove Header */ remove_action( 'genesis_header', 'genesis_do_header' ); /** Remove primary nav menu */ remove_action( 'genesis_after_header', 'genesis_do_nav' ); /** Remove secondary nav menu */ remove_action( 'genesis_after_header', 'genesis_do_subnav' ); /** Make the Page Full Width */ add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); /** Do the Magic */ genesis(); ?>
I hope you enjoyed!