mirror of
https://github.com/10h30/yeuchaybo-v6.git
synced 2026-06-05 15:10:05 +09:00
42 lines
914 B
PHP
Executable File
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();
|