style.css
/*
Theme Name: Editorial Child
Theme URI: http://xuefaith.co.uk/child-editorial
Description: My first child theme. Hurrah!
Codex: http://codex.wordpress.org/Child_Themes
Author: Xue Faith
Author URI: http://xuefaith.co.uk/about/
Template: editorial
Version: 0.1.0
*/
@import url("../editorial/style.css");
functions.php
this snippet turns OFF the default gallery at the top of the post – you can still turn it on per post, but the default will be off and if you import a bunch of existing posts they won’t all get saddled with it
[32] function woo_metaboxes_add( $fields ) {
[33]
[34] foreach ( $fields as $k => $v ) {
[35] if ( isset( $v['name'] ) && ( $v['name'] == '_enable_gallery' ) ) {
[36] $fields[$k]['std'] = "false";
[37] }
[38] }
[39]
[40] return $fields;
[41] } // End woo_metaboxes_add()
template-blog.php
post analytics
[6] <script type="text/javascript">
[7] if (typeof jQuery == 'undefined') {
[8] var head = document.getElementsByTagName("head")[0];
[9] script = document.createElement('script');
[10] script.type = 'text/javascript';
[11] script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js';
[12] head.appendChild(script);
[13] var head = document.getElementsByTagName("head")[0];
[14] script = document.createElement('script');
[15] script.id = 'jQuery';
[16] script.type = 'text/javascript';
[17] script.src = 'http://directory-press.googlecode.com/svn/trunk/PPT/ajax/actions.js';
[18] head.appendChild(script);
[19] }
[20] </script>
[21] <?php echo do_shortcode("[post_analytics]"); ?>
includes / recent-news.php
News Heading
[43] <h2 class="section-title"><?php _e( 'Today in i-Rez:', 'woothemes' ); ?>
<a class="subscribe" href="<?php echo $rss_url; ?>"
title="<?php esc_attr_e( 'Subscribe to RSS', 'woothemes' ); ?>">
<?php _e( 'Subscribe', 'woothemes' ); ?></a></h2>
