-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpage-landing.php
49 lines (37 loc) · 1.11 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
<?php
/**
* This is the landing page template file.
* Template Name: Landing Page
*
* @package Genesis-Foundation
* @since 1.0.0
*/
//*
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_filter( 'body_class', 'ssm_landing_page_class' );
/*
* Add body class
*
*/
function ssm_landing_page_class( $classes ) {
$classes[] = 'landing-page';
// return the $classes array
return $classes;
}
add_action('get_header', 'ssm_maybe_show_title');
/*
* Use ACF radio button to determine whether or not to show the title
*
*/
function ssm_maybe_show_title() {
global $post;
if ( get_field('include_title_on_page') == 'No') {
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
}
}
add_action('genesis_entry_content', 'ssm_insert_content_blocks');
remove_action( 'genesis_header', 'ssm_do_header_right' );
remove_action( 'genesis_after_header', 'ssm_do_primary_navigation' );
genesis_lite();