Subscribe to our feed...

http://feeds.feedburner.com/design-notes

  • Push Your Designs To Perfection

    goldSCHNITT is a small stand alone application for MAC that helps you apply golden ration to your design. Golden ratio(1.61803) is believed as a ratio of perfection. It has been used by many artists and architects through the history.

    Now we have this small app called goldSCHNITT to help you implement golden ration into your design.

how I made a wordpress child theme with thematic (2)

Under: Wordpress 3 comments

After getting the child theme’s index.php done, from previous theme development experiences, I imagine you already know what I need to do for single.php and page.php. Nothing fancy, copy, past and delete the extra.

single.php

Change

<?php the_excerpt(); ?>

to

<?php the_content(); ?>

Add this line to support multiple pagination.

<?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'thematic') . '&after=</div>') ?>

Then I add comments template after page navigation

<?php comments_template('', true); ?>

Switch all widget area’s name to single

<?php get_sidebar('index-bottom') ?>

to

<?php get_sidebar('single-bottom') ?>

page.php

Apart from changing the widget area name again, I only added one extra line. Because the default thematic theme have a drop down menu design for sub pages which does not go well with my textured theme, I added this extra line for sub pages under post title.

<?php
$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
if ($children) { ?>
<?php echo $children; ?>
<?php } ?>

Footer.php

Only simple copy, past add “subsidiary” widget area.

<?php
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
    else { $$value['id'] = get_settings( $value['id'] ); }
    }
?>
    </div><!-- #main -->
 
<?php thematic_abovefooter(); ?>    
 
	<div id="footer_bg">
	<div id="footer">
        <?php get_sidebar('subsidiary'); ?>
        <div id="siteinfo">        
    		<?php /* footer text set in theme options */ echo do_shortcode(__(stripslashes(thematic_footertext($thm_footertext)), 'thematic')); ?>
		</div><!-- #siteinfo -->
	</div><!-- #footer -->
	</div><!-- #footer_bg -->
 
<?php thematic_belowfooter(); ?>  
 
</div><!-- #wrapper .hfeed -->
 
<?php wp_footer() ?>
 
<?php thematic_after(); ?>

Finally, all done. the theme is free for downloading soon.

ADD TOAdd To Evernote

If this helps, why not tell your friends?

  • Reddit
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Technorati
  • Design Float
  • Identi.ca
  • FriendFeed
  • Yahoo! Buzz
  • Ping.fm

3 Responses to “ how I made a wordpress child theme with thematic (2) ”

  • Brilliant post! I’ve been busy making some themes myself, and what started out as just one theme ended up as over 20 wordpress sales page themes!

    [Reply]

  • Leave a Reply

    All fields marked with "*" are required.