Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //* Start the engine
- include_once( get_template_directory() . '/lib/init.php' );
- //* Child theme (do not remove)
- define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' );
- define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
- define( 'CHILD_THEME_VERSION', '2.0.1' );
- //* Enqueue Lato Google font
- add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' );
- function genesis_sample_google_fonts() {
- wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION );
- }
- /** Remove Header */
- remove_action( 'genesis_header', 'genesis_do_header' );
- /** Remove Footer */
- remove_action( 'genesis_footer', 'genesis_do_footer' );
- //* Add HTML5 markup structure
- add_theme_support( 'html5' );
- //* Add viewport meta tag for mobile browsers
- add_theme_support( 'genesis-responsive-viewport' );
- //* Add support for custom background
- add_theme_support( 'custom-background' );
- //* Remove Primary Navigations from Home Page
- add_action('get_header', 'child_remove_genesis_do_nav');
- function child_remove_genesis_do_nav() {
- if (is_front_page()) {
- remove_action('genesis_after_header', 'genesis_do_nav');
- }
- }
- //* Remove Secondary Navigations from Home Page
- add_action('get_header', 'child_remove_genesis_do_subnav');
- function child_remove_genesis_do_subnav() {
- if (is_home()) {
- remove_action('genesis_after_header', 'genesis_do_subnav');
- }
- }
- //* Add support for 3-column footer widgets
- add_theme_support( 'genesis-footer-widgets', 3 );
- //* Register widget areas
- genesis_register_sidebar( array(
- 'id' => 'home-top',
- 'name' => __( 'Home - Top', 'manta' ),
- 'description' => __( 'This is the top section of the home page.', 'manta' ),
- ) );
- genesis_register_sidebar( array(
- 'id' => 'home-cta',
- 'name' => __( 'Home - Call To Action', 'manta' ),
- 'description' => __( 'This is the call to action section on the home page.', 'manta' ),
- ) );
- genesis_register_sidebar( array(
- 'id' => 'home-slider',
- 'name' => __( 'Home - Slider', 'manta' ),
- 'description' => __( 'This is the slider section on the home page.', 'manta' ),
- ) );
- genesis_widget_area( 'home-middle', array(
- 'before' => '<div class="home-middle widget-area">',
- 'after' => '</div>',
- ) );
- genesis_register_sidebar( array(
- 'id' => 'home-feature-one',
- 'name' => __( 'Home - Feature One', 'manta' ),
- 'description' => __( 'This is the first featured widget of the home page.', 'manta' ),
- ) );
- genesis_register_sidebar( array(
- 'id' => 'home-feature-two',
- 'name' => __( 'Home - Feature Two', 'manta' ),
- 'description' => __( 'This is the second featured widget of the home page.', 'manta' ),
- ) );
- genesis_register_sidebar( array(
- 'id' => 'home-feature-three',
- 'name' => __( 'Home - Feature Three', 'manta' ),
- 'description' => __( 'This is the third featured widget of the home page.', 'manta' ),
- ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement