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
// removes the Thematic Theme Options from the WordPress Admin Menu | |
function childtheme_opt_remove_page() { | |
remove_action( 'admin_menu', 'thematic_opt_add_page' ); | |
} | |
add_filter('thematic_child_init', 'childtheme_opt_remove_page'); | |
// modifies the site info text contained in the Theme Options | |
function childtheme_override_siteinfo() { | |
echo "Whatever you want"; | |
} |
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
// thematictheme.com/forums/topic/correct-way-to-prevent-loading-thematic-scripts/ | |
// remove built in drop down theme javascript | |
function childtheme_remove_superfish(){ | |
remove_theme_support('thematic_superfish'); | |
} | |
add_action('wp_enqueue_scripts','childtheme_remove_superfish', 9); | |
// script manager template for registering and enqueuing files |
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/add-custom-widget-area-to-top-of-website/ | |
// add a widget to the top of the site | |
function childtheme_add_thematic_aboveheader_widget($content) { | |
$content['Top of site widget'] = array( | |
'admin_menu_order' => 232, | |
'args' => array ( | |
'name' => 'Top Of Site Widget (Twitter)', | |
'id' => 'tweets', | |
'description' => __('The widget area above the subs/footer.', 'thematic'), |
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
// change the excerpt length, default WP value is 55 words | |
function childtheme_excerpt_length($length) { | |
return 5; // 5 words | |
} | |
add_filter('excerpt_length', 'childtheme_excerpt_length'); |
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
// show excerpt post instead of excerpt on homepage | |
function childtheme_thematic_content($content) { | |
if ( is_front_page() || is_home() ) { | |
$content= 'excerpt'; | |
} | |
return $content; | |
} | |
add_filter('thematic_content', 'childtheme_thematic_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
// remove access menu from current position | |
function childtheme_move_access() { | |
remove_action('thematic_header', 'thematic_access', 9); | |
} | |
add_action('thematic_child_init', 'childtheme_move_access'); | |
// add access 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
<?php | |
// remove user agent sniffing from thematic theme | |
// this is what applies classes to the browser type and version body classes | |
function childtheme_show_bc_browser() { | |
return FALSE; | |
} | |
add_filter('thematic_show_bc_browser', 'childtheme_show_bc_browser'); |
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 | |
// add script to WP with a page conditional | |
// thematictheme.com/forums/topic/adding-javascript-to-style-an-element/ | |
function childtheme_add_shit_to_head() { | |
if ( is_page( 80 ) ) { ?> | |
<script>Script....</script> | |
<?php } | |
} |
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 | |
// remove sidebars on single pages in thematic | |
function childtheme_thematic_sidebar($show) { | |
if ( is_single() ) { | |
$show = false; | |
} | |
return $show; | |
} |
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 | |
// remove all postfooter information except for post category | |
// thematictheme.com/forums/topic/post-footer/ | |
// override, show only categories in postfooter | |
function childtheme_override_postfooter() { | |
$post_type = get_post_type(); | |
$post_type_obj = get_post_type_object($post_type); | |
$tagsection = get_the_tags(); |