Last active
June 11, 2019 18:53
-
-
Save timelsass/2ab254b1c835c12a321f5aee2430bdd7 to your computer and use it in GitHub Desktop.
Clean Page template child theme example using "Swifty" theme by BoldGrid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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