page_landing.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * This file adds the Landing Page Template to the Captivating Theme.
  4. *
  5. * @package Captivating
  6. * @link http://restored316designs.com/themes
  7. * @author Lauren Gaige // Restored 316 LLC
  8. * @copyright Copyright (c) 2015, Restored 316 LLC, Released 08/09/2017
  9. * @license GPL-2.0+
  10. */
  11. /*
  12. Template Name: Landing
  13. */
  14. //* Add custom body class to the head
  15. add_filter( 'body_class', 'captivating_add_body_class' );
  16. function captivating_add_body_class( $classes ) {
  17. $classes[] = 'captivating-landing';
  18. return $classes;
  19. }
  20. //* Force full width content layout
  21. add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
  22. //* Remove navigation
  23. remove_action( 'genesis_before_header', 'genesis_do_nav', 7 );
  24. remove_action( 'genesis_after_header', 'genesis_do_subnav' );
  25. remove_action( 'genesis_before_footer', 'captivating_footer_menu', 7 );
  26. remove_action( 'genesis_header', 'captivating_header_right_menu', 9 );
  27. remove_action( 'genesis_header', 'captivating_header_left_menu', 6 );
  28. //* Remove site header elements
  29. remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
  30. remove_action( 'genesis_header', 'genesis_do_header' );
  31. remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
  32. //* Remove Announcement bar
  33. remove_action( 'genesis_before', 'captivating_announcement_widget', 8 );
  34. //* Remove Widget Area Above Content
  35. remove_action( 'genesis_before_footer', 'captivating_site_wide_cta', 6 );
  36. //* Remove site footer widgets
  37. remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
  38. //* Remove widget below footer
  39. remove_action( 'genesis_before_footer', 'captivating_widget_below_footer', 12 );
  40. //* Remove site footer elements
  41. remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
  42. remove_action( 'genesis_footer', 'genesis_do_footer' );
  43. remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
  44. //* Run the Genesis loop
  45. genesis();