[wptest-www: 25/27] add support to custom_css to pages



commit 1c02b0b35c8ff61ae1b63a89d147be955b138593
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Mon Jan 30 22:07:26 2012 -0200

    add support to custom_css to pages

 theme/header.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/theme/header.php b/theme/header.php
index 6d9a69d..cb5d3e9 100644
--- a/theme/header.php
+++ b/theme/header.php
@@ -34,7 +34,9 @@ if (function_exists('wppo_get_lang')) {
 
 <?php
 
-if (is_single()) {
+
+
+if (is_single() || is_page()) {
     $custom_css = get_post_meta($post->ID, 'custom_css', true);
     if (!empty($custom_css)) {
         echo '<style type="text/css">'."\n";



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]