summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-06 21:01:15 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-06 21:01:15 -0500
commit3684f2f9f835054bb2469d6febf99cdb8530d926 (patch)
tree2365a26c2f27566459263a66fd0d2cd0a5a98934
parent1c76fd20d1b7a770350d5e43555baab280bd8f41 (diff)
-rw-r--r--.gitignore1
-rw-r--r--functions.php17
-rw-r--r--theme.mk1
3 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 498b288..1e3388c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ img/*
!header.php.patch
!single.php.patch
!index.php.patch
+!functions.php
!logo-style.scss.php
!css_shadow.php
!twentyeleven-fix.scss
diff --git a/functions.php b/functions.php
new file mode 100644
index 0000000..df1fa59
--- /dev/null
+++ b/functions.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * @author Luke Shumaker
+ * @author Chris Aprea
+ */
+
+/**
+ * In child themes the functions.php is applied before the parent
+ * theme's functions.php. So we need to wait for the parent theme to add
+ * it's filter before we can remove it.
+ */
+function kilabytes_child_theme_setup() {
+ // Removes the filter that adds the "singular" class to the body element
+ // which centers the content and does not allow for a sidebar
+ remove_filter( 'body_class', 'twentyeleven_body_classes' );
+}
+add_action( 'after_setup_theme', 'kilabytes_child_theme_setup' );
diff --git a/theme.mk b/theme.mk
index fb756c1..7fd7d6f 100644
--- a/theme.mk
+++ b/theme.mk
@@ -4,6 +4,7 @@ srcfiles = \
header.php.patch \
single.php.patch \
index.php.patch \
+ functions.php \
logo-style.scss.php \
css_shadow.php