The Masterplan

The Morning After

For version 1.2:
To mark a post as “featured”, just make sure it belongs to the ‘Featured’ category (which you created after you activated the theme). For best results, please enter an excerpt for the post in the ‘Optional Excerpt’ section on the Write Post page.

To add a thumbnail image for the featured post (displayed on the home page), create a custom field with key featured_home_img and value as the name of the image (e.g. featuredthumb.jpg).

This image should be saved in the wp-content/themes/tma/images/featured/ folder. Please ensure that the thumbnail image for the featured post has dimensions of 64×64 pixels.

For versions 1.0 and 1.1:
In order to make a post “featured”, you should create a custom field with key isfeatured and value yes. Make sure the yes is all lower case and that there are no extra spaces after it. This should only be done for featured posts, not all posts. If you don’t want to feature a certain post, ignore the custom field. You also need to ensure that there is only one article at a time that is featured. If you want to feature a new post and a previously featured post exists, go back to the previous post and delete the isfeatured custom field for the older featured post.

To add a thumbnail image for the featured post (displayed on the home page), create a custom field with key featured_home_img and value as the name of the image (e.g. featuredthumb.jpg).

This image should be saved in the wp-content/themes/tma/images/featured/ folder. Please ensure that the thumbnail image for the featured post has dimensions of 64×64 pixels.

Recent posts and associated images

The ‘Recent Posts’ area on the home page displays the next five latest posts (after the very latest one, in descending order). To add a thumbnail image to each of the posts, create a custom field with key thumb_home_img and value as the name of the image (e.g. featuredthumb.jpg). Please be sure to add this custom field for all posts (except asides).

This image (for each post) should be saved in the wp-content/themes/tma/images/thumbs/ folder. Please ensure that the thumbnail image has dimensions of 48×48 pixels.

Displaying your own logo

By default, the theme displays your Web site’s title and description in the header. If you want to replace that with your logo, it’s easy to do. If you look at the source code for header.php, you will see the following:

<div class="title">
<div><a href=”<?php echo get_option(’home’); ?>/”><?php bloginfo(’name’); ?></a></div>
<div class=”desc”><?php bloginfo(’description’); ?></div>
</div>

And below that is:

<!--<a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('description'); ?>" class="sitelogo"></a>-->

Just comment out the first block (or delete it), and uncomment the second block of code. Save your logo as sitelogo.png and upload it to the wp-content/themes/tma/images/bg/ folder. Please ensure that the width of the logo doesn’t exceed 400px, and that the height of the logo doesn’t exceed 90px.

Wrapping text around and adding captions to images

If you want to align an image to the left or right of a paragraph, or if you want to display a big image spanning the width of the post, insert the following block(s) of code before the paragraph:

For left-aligned images with captions:

<div class="captionleft"><img src="path/to/image.jpg" alt="alt text" /><p>Caption goes here</p></div>

For right-aligned images with captions:

<div class="captionright"><img src="path/to/image.jpg" alt="alt text" /><p>Caption goes here</p></div>

For images spanning the width of the post with captions:

<div class="captionfull"><img src="path/to/image.jpg" alt="alt text" /><p>Caption goes here</p></div>

Please ensure that the images spanning the width of the post are not more than 750 pixels wide.

Asides

An aside is basically a very short post, more like a note. It could be an interesting link that you want to share with your readers, or just a quick opinion about something. To publish asides using The Morning After, just write the short post as you would normally, and make sure it belongs to the ‘Asides’ category (which you created after activating the theme). That’s it. Asides are displayed on the home page below the featured post.

Emailing posts to friends and the print-friendly view

If you installed and activated the WP-Email and WP-Print plugins that I mentioned in the Installation part of this page, you should be able to offer your readers the option of emailing posts to friends and a print-friendly view for every post. The respective links will can be viewed below the title of the post. You might need to update your permalink structure after installing the plugins.

You can play around with the settings for the plugins in your administrative panel. The WP-Email plugin will create an extra tab in your header navigation called, well, ‘E-mail’, where you can tweak the settings under ‘E-mail Options’. For the WP-Print plugin, you can go to Options > Print.

For best results with the WP-Email plugin, go to the E-mail Options page and set the ‘E-Mail Link Type‘ to ‘E-mail Popup‘, and the ‘E-Mail Text Link Style‘ to ‘E-mail Text Link Only‘. Similarly for the WP-Print plugin, set the ‘Print Text Link Style‘ to ‘Print Text Link Only‘.

Advertisements

There are two main advertisement ‘blocks’ in The Morning After theme.

On the home page below the ‘Recent Posts’ section:
This block accommodates a 250×250 pixels advertisement (maximum width, can be less than 250px as well; height can exceed 250px, but should preferably be 250px or less). To display an ad here, open ad_home.php and simply paste your advertisement code in the file. Save and upload, obviously. You can also add the advertisement code in the ad_home.php file using WordPress’ in-built theme editor.

Homepage | Page 1 | Page 2