Lego2012
12/13/2016 - 9:21 AM

Template - Custom Page Template

Template - Custom Page Template

<?php
/*
Template Name: Custom Page Template
*/

// Remove page title
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );

// Force full width content (optional)
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

// Remove default Genesis loop
remove_action( 'genesis_loop', 'genesis_do_loop' );

// Add new custom loop
add_action( 'genesis_loop', 'child_custom_loop' );


/**
 * Execute child loop
 */
function child_custom_loop() { ?>

<!-- custom code here -->

<?php }

genesis();