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
// reference: http://scottnix.com/2014-thematic-child-theme/#comment-53413 | |
function childtheme_add_favicon() { ?> | |
<link rel="shortcut icon" href="/favicon.ico"> | |
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-152x152-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/apple-touch-icon-120x120-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="/apple-touch-icon-76x76-precomposed.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png"> |
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
# ------------------------------------------------------------------------------ | |
# | Expires headers (for better cache control) | | |
# ------------------------------------------------------------------------------ | |
# The following expires headers are set pretty far in the future. If you don't | |
# control versioning with filename-based cache busting, consider lowering the | |
# cache time for resources like CSS and JS to something like 1 week. | |
<IfModule mod_expires.c> |
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
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
rename = require('gulp-rename'), | |
notify = require('gulp-notify'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
markdown = require('gulp-markdown'), |
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
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
rename = require('gulp-rename'), | |
notify = require('gulp-notify'), | |
imagemin = require('gulp-imagemin'), | |
cache = require('gulp-cache'), | |
livereload = require('gulp-livereload'), |
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
# compass config.rb refrences - http://compass-style.org/help/tutorials/configuration-reference/ | |
# path to file structures | |
http_path = "/" | |
css_dir = "/" | |
sass_dir = "/scss" | |
images_dir = "/images" | |
fonts_dir = "/fonts" | |
javascripts_dir = "/js" |
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
// reference http://thematictheme.com/forums/topic/removing-thematic_access-only-on-the-front-page/ | |
// remove access from front page and home (usually same page) | |
function childtheme_override_access() { | |
if ( !is_front_page() || !is_home() ) { ?> | |
<div id="access"> | |
<div class="skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip navigation to the content', 'thematic' ); ?>"><?php _e('Skip to content', 'thematic'); ?></a></div><!-- .skip-link --> | |
<?php | |
if ( ( function_exists("has_nav_menu") ) && ( has_nav_menu( apply_filters('thematic_primary_menu_id', 'primary-menu') ) ) ) { | |
echo wp_nav_menu(thematic_nav_menu_args()); |
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
// reference http://thematictheme.com/forums/topic/custom-404/ | |
// change postheader post title for 404 error pages | |
function childtheme_postheader_posttitle($posttitle) { | |
if ( is_404() ) { | |
$posttitle = '<h1 class="entry-title">Some Custom Title</h1>'; | |
} | |
return $posttitle; | |
} | |
add_filter('thematic_postheader_posttitle', 'childtheme_postheader_posttitle'); |
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
// reference http://thematictheme.com/forums/topic/custom-404/ | |
// override 404 content | |
function childtheme_override_404_content() { | |
thematic_postheader(); ?> | |
<div class="entry-content"> | |
<p>Super Awesome Customizations</p> | |
<p><?php _e( 'Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'thematic' ) ?></p> | |
</div><!-- .entry-content --> |
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
// reference http://thematictheme.com/forums/topic/trouble-getting-custom-menu-to-display/#post-3804 | |
// register two additional custom menu slots | |
function childtheme_register_menus() { | |
if ( function_exists('register_nav_menu')) { | |
register_nav_menu('contact-menu', 'Contact Menu'); | |
} | |
} | |
add_action('init', 'childtheme_register_menus'); |
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
// replace the site title text with an image that links back to homepage, usually for logos | |
function childtheme_override_blogtitle() { | |
?> | |
<div id="blog-title" class="site-title"> | |
<span> | |
<a href="<?php echo home_url() ?>/" title="<?php bloginfo('name') ?>" rel="home"> | |
<img src="http://placekitten.com/100/100" alt="<?php bloginfo('name') ?>" /> | |
</a> | |
</span> | |
</div> |