Skip to content

Instantly share code, notes, and snippets.

@timelsass
Last active June 11, 2019 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timelsass/2ab254b1c835c12a321f5aee2430bdd7 to your computer and use it in GitHub Desktop.
Save timelsass/2ab254b1c835c12a321f5aee2430bdd7 to your computer and use it in GitHub Desktop.
Clean Page template child theme example using "Swifty" theme by BoldGrid
<?php
/**
* Base Template for Clean Page without a Header, Footer, or Sidebar added.
*
* This file contains the base structure of a BoldGrid Theme.
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<?php get_template_part( 'templates/head' ); ?>
<body <?php body_class(); ?>>
<?php do_action( 'boldgrid_header_before' ); ?>
<div class="site-header">
<?php do_action( 'get_header' ); ?>
</div><!-- /.header -->
<?php do_action( 'boldgrid_header_after' ); ?>
<?php do_action( 'boldgrid_content_before' ); ?>
<div id="content" class="site-content" role="document">
<main class="main container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<?php include Boldgrid_Framework_Wrapper::boldgrid_template_path(); ?>
</div>
</div>
</main><!-- /.main -->
</div><!-- /.content -->
<?php do_action( 'boldgrid_content_after' ); ?>
<?php do_action( 'boldgrid_footer_before' ); ?>
<div class="site-footer">
<?php do_action( 'get_footer' ); ?>
<?php wp_footer(); ?>
</div>
<?php do_action( 'boldgrid_footer_after' ); ?>
</body>
</html>
<?php
/**
* Template Name: Clean Page
*
* The template for displaying the "Clean Page" template.
*
* If you need to modify templates/content.php for this custom template, create
* a templates/content-clean-page.php file, which will be called whenever this
* template is called. Keep in mind that the page title can be hidden/shown using
* the checkbox toggle in the post and page editor screen, so there shouldn't be
* any need to further modify that for this particular example.
*/
while ( have_posts() ) : the_post();
get_template_part( 'templates/content', 'clean-page' );
endwhile; // end of the loop.
/*
Theme Name: Swifty Child
Author: timph
Description: Swifty Child theme custom base template example.
Version: 1.0.0
License: GPL-3.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swifty-child
Template: boldgrid-swifty
Tags: custom-background, custom-colors, custom-menu, editor-style, translation-ready
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment