Created
November 27, 2019 06:30
-
-
Save braddalton/2ca22ba2fadad4463f48c86a00537994 to your computer and use it in GitHub Desktop.
Wellness Pro Front Page As Page Template https://wp.me/p1lTu0-iKL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'genesis_meta', 'wellness_front_page_genesis_meta' ); | |
function wellness_front_page_genesis_meta() { | |
// Enqueue scripts. | |
add_action( 'wp_enqueue_scripts', 'wellness_enqueue_front_script_styles' ); | |
// Add front-page body class. | |
add_filter( 'body_class', 'wellness_body_class' ); | |
// Hook sticky message before site header. | |
add_action( 'genesis_before', 'wellness_sticky_message' ); | |
// Remove breadcrumbs. | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
// Remove the default Genesis loop. | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
// Add homepage widgets. | |
add_action( 'genesis_loop', 'wellness_page_template_sections' ); | |
// Force full width content layout. | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment