Skip to content

Instantly share code, notes, and snippets.

@chasereeves
chasereeves / Thesis - Custom Meta Stuff
Created February 2, 2011 04:36
Thesis custom meta stuff
//=========================================================== Custom Meta Stuff
function custom_meta_stuff() { ?>
<?php } add_action('wp_head', 'custom_meta_stuff');
@chasereeves
chasereeves / Thesis - Custom Header
Created February 2, 2011 04:36
Thesis custom header
//=========================================================== Custom Header
remove_action('thesis_hook_header', 'thesis_default_header');
function custom_header() { ?>
<?php } add_action('thesis_hook_header', 'custom_header');
@chasereeves
chasereeves / Thesis - Move Nav
Created February 2, 2011 04:37
Thesis move nav
//=========================================================== Move Nav
remove_action('thesis_hook_before_header','thesis_nav_menu');
add_action('thesis_hook_after_header','thesis_nav_menu');
@chasereeves
chasereeves / Thesis - Add Category to Byline
Created February 2, 2011 04:39
Thesis add category to byline
//========================================================== Byline, Category on same line
function add_to_byline() {
if (!is_page()) { echo ' in <span>' . get_the_category_list(',') . '</span>'; }
} add_action('thesis_hook_byline_item', 'add_to_byline', '99');
@chasereeves
chasereeves / Thesis - Custom Footer
Created February 2, 2011 04:40
Thesis custom footer
@chasereeves
chasereeves / Thesis - Custom Footer Scripts
Created February 2, 2011 04:41
Thesis custom footer scripts hook with google analytics, jquery, etc.
@chasereeves
chasereeves / Basic custom_functions.php
Created February 2, 2011 04:55
all the basic thesis hooks.
<?php
// thesis_nav_menu();
// thesis_content_column();
//=========================================================== CUSTOM META STUFF
function custom_meta_stuff() { ?>
<?php } add_action('wp_head', 'custom_meta_stuff');
//=========================================================== CUSTOM HEADER
remove_action('thesis_hook_header', 'thesis_default_header');
@chasereeves
chasereeves / Basic custom.css
Created February 2, 2011 05:10
All the basic thesis CSS
/* LAYOUT SIDEBAR HEADER/NAV FEATURE BOX TYPOGRAPHY/LINKS FOOTER GLOBAL*/
/* =========================== LAYOUT =========================== */
.custom #header {
}
.custom .full_width .page {
}
.custom #content {
}
.custom #sidebars {
}
@chasereeves
chasereeves / Thesis custom feature box
Created February 8, 2011 23:24
Thesis custom feature box
// CUSTOM FEATURE BOX
function custom_feature_box() { ?>
<?php } add_action('thesis_hook_feature_box', 'custom_feature_box');
@chasereeves
chasereeves / Complete Custom Byline
Created March 31, 2011 15:02
Complete custom byline with author, date, categories, comments, tags
//========================================================== CUSTOM COMPLETE BYLINE
function custom_byline() { ?>
<p class="headline_meta">
<abbr class="published" title="<?php echo get_the_time('Y-m-d'); ?>"><?php echo get_the_time(get_option('date_format')); ?></abbr>
Posted <?php thesis_author(); ?> in <span><?php echo get_the_category_list(', '); ?></span>
&middot; <span><a href="<?php the_permalink(); ?>#comments" rel="nofollow">
<?php comments_number(__('0 comments', 'thesis'), __('1 comment', 'thesis'), __('% comments', 'thesis')); ?></a></span>
</p>
<p class="headline_meta"><?php the_tags('tagged as <span>', ', ', '</span>'); ?></p>
<?php } add_action('thesis_hook_after_headline', 'custom_byline');