Permalink
Browse files

Add a "Custom CSS" field to the options page. This may get its own pa…

…ge eventually. Still undecided.
  • Loading branch information...
1 parent 0d292b1 commit 41e9e43e72892ca83cc1a5133ea283f42489904b @tlongren committed Oct 12, 2011
Showing with 8 additions and 1 deletion.
  1. +1 −0 header.php
  2. +7 −1 theme-options.php
View
@@ -20,6 +20,7 @@
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
+<?php if ( !empty($html5press_settings['custom_css']) ) { ?><style type="text/css"><?php echo $html5press_settings['custom_css']; ?></style><?php } ?>
</head>
<body <?php body_class(); ?>>
View
@@ -13,7 +13,8 @@
'theme_color' => 'pink',
'theme_font' => 'droid-serif',
'featured_cat' => '',
- 'num_featured' => '5'
+ 'num_featured' => '5',
+ 'custom_css' => 'custom_css'
);
if ( is_admin() ) : // Load only if we are viewing an admin page
@@ -461,6 +462,11 @@ function html5press_theme_options_page() {
</select>
</td>
</tr>
+ <tr valign="top"><th scope="row"><label for="custom_css">Custom CSS</label></th>
+ <td>
+ <textarea name="html5press_options[custom_css]" style="width:350px; height:200px;" cols="" rows=""><?php echo esc_attr($settings['custom_css']); ?></textarea>
+ </td>
+ </tr>
</table>
<p class="submit"><input type="submit" class="button-primary" value="Save Options" /></p>

0 comments on commit 41e9e43

Please sign in to comment.