Files
yeuchaybo-v6/templates/page-builder.php
T
2018-09-13 20:49:49 +07:00

42 lines
914 B
PHP
Executable File

<?php
/**
* Yeu Chay Bo
*
* This file adds the page builder template to the Yeu Chay Bo theme.
*
* Template Name: Page Builder
*
* @package SEOThemes\CorporatePro
* @link https://thuanbui.me/themes/yeuchaybo
* @author Thuan Bui
* @copyright Copyright © 2018 Thuan Bui
* @license GPL-2.0+
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Remove default hero section.
remove_action( 'genesis_after_header', 'corporate_hero_section_open', 20 );
remove_action( 'genesis_after_header', 'corporate_hero_section_title', 24 );
remove_action( 'genesis_after_header', 'corporate_hero_section_close', 28 );
// Get site-header.
get_header();
// Custom loop, remove all hooks except entry content.
if ( have_posts() ) :
the_post();
do_action( 'genesis_entry_content' );
endif;
// Get site-footer.
get_footer();