Skip to content

Instantly share code, notes, and snippets.

View kristarella's full-sized avatar

Kristen Symonds kristarella

View GitHub Profile
@kristarella
kristarella / large_headline.php
Created September 12, 2012 23:25
Thesis single post title above post & sidebars
function remove_headline() {
return (is_single()) ? false : true;
}
add_filter('thesis_show_headline_area', 'remove_headline');
function large_headline() {
global $wp_query;
$post_ID = $wp_query->post->ID;
if (is_single()) {
?>
@kristarella
kristarella / angel.php
Created August 7, 2012 04:47
Angel Snippets
function custom_body_classes($classes) {
if (is_category('Videos'))
$classes[] = "videos";
return $classes;
}
add_filter('thesis_body_classes','custom_body_classes');
function no_sidebars() {
if (is_category('Videos'))
return false;
@kristarella
kristarella / wp_xfbml.php
Last active October 7, 2015 12:48
Add Facebook XFBML to WordPress theme HTML
<?php
function fb_xfbml_js() {
?>
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;