mirror of
https://github.com/10h30/yeuchaybo.git
synced 2026-06-05 15:10:03 +09:00
65 lines
1.6 KiB
PHP
65 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* Child Theme Library
|
|
*
|
|
* WARNING: This file is a part of the core Child Theme Library.
|
|
* DO NOT edit this file under any circumstances. Please use
|
|
* the functions.php file to make any theme modifications.
|
|
*
|
|
* Template Name: Landing Page
|
|
*
|
|
* @package SEOThemes\ChildThemeLibrary\Views
|
|
* @link https://github.com/seothemes/child-theme-library
|
|
* @author Thuan Bui
|
|
* @copyright Copyright © 2018 Thuan Bui
|
|
* @license GPL-2.0+
|
|
*/
|
|
|
|
// If this file is called directly, abort.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
die;
|
|
|
|
}
|
|
|
|
add_action( 'wp_enqueue_scripts', 'child_theme_dequeue_skip_links' );
|
|
/**
|
|
* Dequeue Skip Links Script.
|
|
*
|
|
* @return void
|
|
*/
|
|
function child_theme_dequeue_skip_links() {
|
|
|
|
wp_dequeue_script( 'skip-links' );
|
|
|
|
}
|
|
|
|
// Remove Skip Links.
|
|
remove_action( 'genesis_before_header', 'genesis_skip_links', 5 );
|
|
|
|
// Remove site header elements.
|
|
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
|
|
remove_action( 'genesis_header', 'genesis_do_header' );
|
|
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
|
|
|
|
// Remove default hero section.
|
|
remove_theme_support('hero-section' );
|
|
|
|
// Remove navigation.
|
|
remove_theme_support( 'genesis-menus' );
|
|
|
|
// Remove breadcrumbs.
|
|
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
|
|
|
|
// Remove footer widgets.
|
|
remove_theme_support( 'genesis-footer-widgets' );
|
|
unregister_sidebar( 'footer-credits' );
|
|
|
|
// Remove site footer elements.
|
|
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
|
|
remove_action( 'genesis_footer', 'genesis_do_footer' );
|
|
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
|
|
|
|
// Run the Genesis loop.
|
|
genesis();
|