forked from dianamontalion/ae-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_landing.php
64 lines (47 loc) · 1.77 KB
/
page_landing.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Twenty Seven Pro.
*
* This file adds the landing page template to the Twentry Seven Pro Theme.
*
* @package Twenty Seven Pro
* @author Brian Gardner
* @license GPL-2.0+
* @link https://briangardner.com/
*/
// Template Name: Landing
// Add landing page body class to head.
add_filter( 'body_class', 'twenty_seven_add_body_class' );
function twenty_seven_add_body_class( $classes ) {
$classes[] = 'landing-page';
return $classes;
}
// Remove skip links.
remove_action ( 'genesis_before_header', 'genesis_skip_links', 5 );
// Dequeue skip links script.
add_action( 'wp_enqueue_scripts', 'twenty_seven_dequeue_skip_links' );
function twenty_seven_dequeue_skip_links() {
wp_dequeue_script( 'skip-links' );
}
// Force full width content layout.
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
// Remove sticky message widget area.
remove_action( 'genesis_before', 'twenty_seven_sticky_message' );
// Remove before header widget area.
remove_action( 'genesis_before_header', 'twenty_seven_before_header' );
// 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 menus.
remove_theme_support( 'genesis-menus' );
// Remove breadcrumbs.
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
// Remove before footer widget area.
remove_action( 'genesis_before_footer', 'twenty_seven_before_footer' );
// 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();