Skip to content

Instantly share code, notes, and snippets.

@simplethemes
Last active August 29, 2015 14:09
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 simplethemes/14ee304db57b5b268b45 to your computer and use it in GitHub Desktop.
Save simplethemes/14ee304db57b5b268b45 to your computer and use it in GitHub Desktop.
<?php
/**
* Lightfast Child Theme
*
*/
function st_remove_wrapper() {
// removes the opening div#wrap
remove_action('skeleton_header','skeleton_mainwrap_open');
}
add_action('after_setup_theme','st_remove_wrapper');
function skeleton_after_footer() {
echo "</div><!-- /.columns -->\n";
echo "</div><!-- /.container -->\n";
echo "</div><!-- /#footer) -->\n";
// Remove closing div#wrap
//echo "</div><!-- /#wrap -->\n";
}
add_action('skeleton_footer', 'skeleton_after_footer',5);
function skeleton_content_wrap_open() {
do_action('skeleton_showcase');
do_action('skeleton_teaser');
echo '<a id="top"></a>';
// move opening div#wrap before content
echo '<div id="wrap">';
echo '<div id="content">';
echo '<div class="container">';
}
add_action( 'skeleton_inner_wrap_open', 'skeleton_content_wrap_open' );
function skeleton_content_wrap_close() {
echo "\t\t</div><!-- /.container -->\n";
echo "\t\t</div><!-- /#content -->\n";
// close div#wrap before footer
echo "\t\t</div><!-- /#wrap -->\n";
}
add_action( 'skeleton_inner_wrap_close', 'skeleton_content_wrap_close' );
/*
Theme Name: Lightfast Child
Theme URI: http://www.simplethemes.com/wordpress-themes/theme/lightfast
Description: Lightfast Child theme. Use this child theme to safely make modifications to the existing theme. Using a child theme ensures that you do not lose the modifications with theme updates.
Version: 1.0.0
Author: Simple Themes
Author URI: http://www.simplethemes.com
Template: lightfast
*/
/*
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
This child theme enables you to make customizations while allowing for safe updates to the parent theme.
The parent theme's style.css is imported below. If you wish to make customizations, do one of the following:
Option A.) Remove the import below, and copy the contents of lightfast/style.css into this file, but leave the (above) child theme head in tact!
Option B.) Add specific rules BELOW the import. This is intended for minimal customizations.
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
*/
@import url("../lightfast/style.css");
#showcase .widget-container.nopad .container,
#showcase .widget-container.nopad .columns {
padding: 0;
margin: 0;
width: 100%;
}
#teaser {
margin-bottom: 0;
}
#header {
background-color: #00364F;
}
#content {
padding-top: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment