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
// override post footer to add SVG icons, pulls from /icon/ folder inside the child theme | |
function childtheme_override_postfooter() { | |
$post_type = get_post_type(); | |
$post_type_obj = get_post_type_object($post_type); | |
$tagsection = get_the_tags(); | |
// Display nothing for "Page" post-type | |
if ( $post_type == 'page' ) { | |
$postfooter = ''; |
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
#blog-title a { | |
display: block; | |
height: 200px; | |
width: 100%; | |
background: url('http://localhost/githubs/test/wp-content/uploads/sites/12/2015/07/cropped-300.jpg'); | |
margin: 0; | |
padding: 0; | |
text-indent: -9999px; /* hides blog name, remove if you want the blog text */ | |
} | |
#blog-description { |
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
// remove menu from current position | |
function childtheme_move_access() { | |
remove_action('thematic_header', 'thematic_access', 9); | |
} | |
add_action('thematic_child_init', 'childtheme_move_access'); | |
// add menu back into the same header, but on a different priority | |
add_action('thematic_header', 'thematic_access', 0); |
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
From: [your-name] <[your-email]> | |
Website: [your-website] | |
Message Body: | |
[your-message] | |
-- | |
This e-mail was sent from a contact form on Scott Nix (http://scottnix.com) |
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
function childtheme_yoast_seo_breadcrumbs() { | |
if ( is_page() && function_exists('yoast_breadcrumb') ) { | |
yoast_breadcrumb('<p id="breadcrumbs">','</p>'); | |
} | |
} | |
add_action('thematic_abovecontainer', 'childtheme_yoast_seo_breadcrumbs'); |
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
.nav { | |
margin-bottom: 0; | |
padding-left: 0; | |
list-style: none; | |
} | |
.nav > li { | |
position: relative; | |
display: block; | |
} | |
.nav > li > a { |
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
// | |
// Bootstrap 3 Variables | |
// This is an incomplete list of bootstrap variables, lists only what pertains to the dropdown menu and various possible options. | |
// | |
//== Colors | |
// | |
//## Gray and brand colors for use across Bootstrap. |
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
/* ======================================================================== | |
* Bootstrap: dropdown.js v3.2.0 | |
* http://getbootstrap.com/javascript/#dropdowns | |
* ======================================================================== | |
* Copyright 2011-2014 Twitter, Inc. | |
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
* ======================================================================== */ | |
+function ($) { |
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
// changes the "Page Title" on Categories to Blog | |
function childtheme_page_title($content) { | |
if ( is_category('') ) { | |
// if ( is_category('aciform') ) { // if you want to target a specific category, target it by name 'aciform' | |
$content = '<h1 class="page-title">'; | |
// $content .= ' <span>' . single_cat_title('', FALSE) .'</span>'; // calls the actual category name, if you need it for something | |
$content .= ' <span>Blog</span>'; | |
$content .= '</h1>' . "\n"; | |
} | |
return $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
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/300/150"> | |
</a> | |
</span> | |
</div> |
NewerOlder