Skip to content

Instantly share code, notes, and snippets.

@crumina
Created February 27, 2015 12:21
Show Gist options
  • Save crumina/74ae76b18e5f2d00dff0 to your computer and use it in GitHub Desktop.
Save crumina/74ae76b18e5f2d00dff0 to your computer and use it in GitHub Desktop.
Blank page for child theme [onetouch, embrace]
/**
* Pages without top menu
* in footer.php
*
* @since 1.0.0
*/
function reactor_remove_footer() {
if (is_page_template('page-blank.php')):
remove_action('reactor_footer_inside', 'reactor_do_footer_widgets', 1);
remove_action('reactor_footer_inside', 'reactor_do_footer_content', 2);
endif;
}
add_action( 'get_footer', 'reactor_remove_footer');
/**
* Pages without top menu
* in header.php
*
* @since 1.0.0
*/
function reactor_remove_header() {
if (is_page_template('page-blank.php')):
remove_action( 'reactor_header_before', 'reactor_do_top_bar', 1 );
remove_action( 'reactor_header_inside', 'reactor_do_title_logo', 1 );
remove_action( 'reactor_header_inside', 'reactor_do_nav_bar', 2 );
remove_action( 'reactor_header_inside', 'reactor_do_mobile_nav', 3 );
remove_action( 'reactor_header_after', 'crumina_stunning_header', 1);
endif;
}
add_action( 'get_header', 'reactor_remove_header');
<?php
/**
* Template Name: Blank page
*
* @package Embrace
* @subpackge Page-Templates
* @since 1.0.0
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if ( IE 7 )&!( IEMobile )]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if ( IE 8 )&!( IEMobile )]><html <?php language_attributes(); ?> class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<?php reactor_head(); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php reactor_body_inside(); ?>
<div id="main-wrapper" class="hfeed site">
<div id="primary" class="site-content">
<?php reactor_content_before(); ?>
<div id="content" role="main">
<div class="row">
<div class="<?php reactor_columns( 12 ); ?>">
<?php reactor_inner_content_before(); ?>
<div class="row">
<div class="container">
<?php while ( have_posts() ) : the_post(); ?>
<?php reactor_page_before(); ?>
<div class="text-content">
<?php the_content(); ?>
</div>
<?php reactor_page_after(); ?>
<?php endwhile; // end of the loop ?>
</div>
</div>
<?php reactor_inner_content_after(); ?>
</div>
<!-- #column -->
</div>
<!-- #row -->
</div>
<!-- #content -->
<?php reactor_content_after(); ?>
</div><!-- #primary -->
<?php //get_footer(); ?>
</div>
<?php reactor_footer_after(); ?>
<?php wp_footer(); reactor_foot(); ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment