12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /**
- * This file adds the Landing Page Template to the Captivating Theme.
- *
- * @package Captivating
- * @link http://restored316designs.com/themes
- * @author Lauren Gaige // Restored 316 LLC
- * @copyright Copyright (c) 2015, Restored 316 LLC, Released 08/09/2017
- * @license GPL-2.0+
- */
-
- /*
- Template Name: Landing
- */
- //* Add custom body class to the head
- add_filter( 'body_class', 'captivating_add_body_class' );
- function captivating_add_body_class( $classes ) {
- $classes[] = 'captivating-landing';
- return $classes;
-
- }
- //* Force full width content layout
- add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
- //* Remove navigation
- remove_action( 'genesis_before_header', 'genesis_do_nav', 7 );
- remove_action( 'genesis_after_header', 'genesis_do_subnav' );
- remove_action( 'genesis_before_footer', 'captivating_footer_menu', 7 );
- remove_action( 'genesis_header', 'captivating_header_right_menu', 9 );
- remove_action( 'genesis_header', 'captivating_header_left_menu', 6 );
- //* 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 Announcement bar
- remove_action( 'genesis_before', 'captivating_announcement_widget', 8 );
- //* Remove Widget Area Above Content
- remove_action( 'genesis_before_footer', 'captivating_site_wide_cta', 6 );
- //* Remove site footer widgets
- remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
- //* Remove widget below footer
- remove_action( 'genesis_before_footer', 'captivating_widget_below_footer', 12 );
- //* 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();
|