Americana

(Difference between revisions)
Jump to: navigation, search
(Added "How to place a clickable logo as header in Americana Interstate")
(Americana Libertas header image PSD)
Line 190: Line 190:
 
</gallery>
 
</gallery>
  
=Americana Libertas header image PSD=
+
=Americana Libertas PSD files=
  
Americana Libertas header image PSD can be downloaded from [http://ge.tt/#7vgYfqm here].
+
Header image PSD can be downloaded from [http://ge.tt/#7vgYfqm here].
 +
 
 +
PSD of name.png, the image which appears in the left side of footer: http://www.mediafire.com/file/7tjrri5a1osdlj7/name.psd. Thanks to [http://ithemes.com/forum/index.php?/topic/11831-americana-theme-thomas-whitmore/#p55530 Frank].
 +
 
 +
[[Image:Name-graphic-americana.png|200px|none]]
  
 
=How to show full post content instead of just the excerpt in Posts page?=
 
=How to show full post content instead of just the excerpt in Posts page?=

Revision as of 21:48, February 21, 2011

Contents

How to set up Americana to look like the demo site

Introduction

Live Demo

Activate Americana child theme at Themes -> Appearance.

Go to My Theme -> Layouts. Duplicate "960 Home" as say, "Americana Home". If you have deleted the stock "960 Home" layout, create a new one and ensure that its width is 960px. Set this as default layout (for now). Hide widget areas of all other layouts. Edit this layout..

Module 1

Add a HTML module having the following code:

<a href="<?php bloginfo('url'); ?>"><h1><?php bloginfo('name'); ?></h1></a>

Select "Blue background" in Style dropdown and enable PHP. Save the module and save the layout.

Refresh your site's front page. You should be now seeing your site's title which links to the site's address at the top in blue background. Site Name and Site Address (URL) values can be changed at Settings -> General.

Module 2

The module below the HTML module is a Navigation module. If you would like to display links to Pages in your site as menu items in the nav bar, this module should be set as "Builder Settings Pages" type. The list of Pages that should appear as menu items in this setting can be controlled by going to My Theme -> Settings.

If you would like to display a special character like ★ to the left of menu item as in the demo site, go to Appearance -> Menus. Create a custom menu there with your desired links. The special character can be typed in the Label field when adding a custom link. To use this custom menu in the nav bar, the navigation module's type should be set to "Custom Menu - <name of your menu>".

Leave the Style dropdown at Default.

Module 3

This should be a Navigation module that is either a "Builder Settings Categories" type or "Custom Menu - <name of your menu>". Style dropdown should be set to "Subnav Blue".

Note: If you have set this to show categories, the category names that should appear as menu items can be controlled at My Theme -> Settings under "Menu Builder" section. Only those categories that contain at least 1 published post will appear in the nav bar.

Module 4

This should be a Widget Bar module with 3 widgets.

Widget widths: 33% / 33% / 33%

Style: Blue (full width)

Go to Appearance -> Widgets. Populate the top 3 widget areas with text widgets having code similar to the following (You should change the URLs of the images and their corresponding hyperlinks):

<a href="http://demos.ithemesbuilder.com/americana/vote/"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/vote.png"></a>
<a href="http://demos.ithemesbuilder.com/americana/donate/"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/donate.png"></a>
<a href="http://demos.ithemesbuilder.com/americana/volunteer/"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/volunteer.png"></a>

Module 5

This should be a Content module with 1 right sidebar whose width is 290px.

To add widgets into the right sidebar, go to Appearance -> Widgets. Expand the corresponding widget area and drag and drop widgets into it.

The content of the top widget on the front page of demo site is:

<p><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/okguy2.png"></p>
<h4>If you don't stand for something, you'll fall for anything.</h4>
<p>Phasellus molestie magna non est bibendum non venenatis nisl tempor. Suspendisse dictum feugiat nisl ut dapibus. Mauris iaculis porttitor posuere. Praesent id metus massa, ut blandit odio. Proin quis tortor orci. Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet.<br>
<a href="http://demos.ithemesbuilder.com/americana/about/">Read Thomas's whole story here.</a></p>
<p><iframe width="262" height="152" frameborder="0" src="http://player.vimeo.com/video/14089005?title=0&byline=0&portrait=0&color=ffffff"></iframe></p>

The content of the bottom widget on the front page of demo site is:

<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/50fb.png"></a>
<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/50tw.png"></a>
<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/vimeo.png"></a>
<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/flickr.png"></a>

How to show thumbnail images

In the demo site, the dimension of each image appearing to the left of post excerpt (on front page)/content (when viewed in full) is 250px by 250px.

In the post editor screen, type the content of the post first. Then place the cursor before the first character. Scroll down to "Featured Image" box at the right side and click on "Set featured image" link. Select and upload your desired image for this post. Set Alignment to Left. Click "Use as featured image" link. click "Insert into Post" button. Publish the post.

Module 6

This should be a Widget Bar module with 2 widgets.

Widget Widths: 30% / 70%

Style: Blue (full width)

Left widget content

<img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/name.png"><br/>
<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/fdark.png"></a>
<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/vdark.png"></a>
<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/fldark.png"></a>
<a href="#"><img src="http://demos.ithemesbuilder.com/americana/wp-content/uploads/2010/11/ydark.png"></a>

You might want to of course change the URL of image in the above and other hyperlinks.

Right widget

This is a 'Recent Posts" widget.

Module 7

This should be the Footer module.

Conclusion

This concludes setting up of layout for front page.

Next step would be to duplicate this layout and call it something like "Americana Content". You might want to use Duplicate Sidebar Widget to duplicate the widgets of front page onto those of this layout. Set this as your default layout and add/edit any widgets to your liking.

Click on Configure Views in layout manager. Add a view to associate "Home" view with the layout that has been created for the site's front page.

How to customize the VOTE, DONATE and VOLUNTEER images

Americana has been updated to include the .psd file needed to edit the VOTE, DONATE and VOLUNTEER graphics. This .psd file can also be downloaded from http://d.pr/XOQt.

  1. Download League Gothic font from here to your computer. Extract the zip file, right click on "League_Gothic.otf" and select Install.
  2. Open the .psd file in a program like Adobe Photoshop or the free GIMP.
  3. Select the vote layer. Switch to text tool, click on VOTE text and replace it with your desired text. You can similarly change the text "for this awesome person".
  4. Save the optimized image for web in your desired file format (the images in the demo are in .png format)
  5. Repeat the above steps to create the other two images.

Examples of adding custom module style

  1. http://ithemes.com/forum/index.php?/topic/9420-americana-theme-how-do-i-get-away-from-fixed-width-layout/#p44290
  2. http://ithemes.com/forum/index.php?/topic/10030-modification-to-americana-theme/#p47025

How to stop the navigation module from stretching full width

By default, background of navigation module in Americana (any color variant) stretches full width from left edge to the right edge of browser. If you would like to restrict it to the container width, edit theme's style.css.

Comment out or delete the ".builder-module-navigation-outer-wrapper" selector block.

Ex.:

Change

.builder-module-navigation-outer-wrapper {
	background: #D1598C url('images/pinknav.png') bottom left repeat-x; 
	border-top: 2px groove #EBEBEB;
	border-bottom: 2px groove #EBEBEB;
}

to

/*.builder-module-navigation-outer-wrapper {
	background: #D1598C url('images/pinknav.png') bottom left repeat-x; 
	border-top: 2px groove #EBEBEB;
	border-bottom: 2px groove #EBEBEB;
} */

Add the background, top and bottom border property lines from the above to ".builder-module-navigation" selector block.

Ex.:

Change

.builder-module-navigation {
	font-family: 'Yanone Kaffeesatz', arial, serif;
	font-size: .8em;
	line-height: 2em;
	display: block;
	margin-bottom: 1.8em;
}

to

.builder-module-navigation {
	font-family: 'Yanone Kaffeesatz', arial, serif;
	font-size: .8em;
	line-height: 2em;
	display: block;
	margin-bottom: 1.8em;
	background: #D1598C url('images/pinknav.png') bottom left repeat-x;
	border-top: 2px groove #EBEBEB;
	border-bottom: 2px groove #EBEBEB;
}

Americana Libertas PSD files

Header image PSD can be downloaded from here.

PSD of name.png, the image which appears in the left side of footer: http://www.mediafire.com/file/7tjrri5a1osdlj7/name.psd. Thanks to Frank.

Name-graphic-americana.png

How to show full post content instead of just the excerpt in Posts page?

Edit theme's index.php.

Replace

<?php the_excerpt(); ?>

with

<?php the_content(); ?>

How to place a clickable logo as header in Americana Interstate

Americana-clickable-logo-header.png

1. Edit your theme's layout and add a HTML module with the following content in it:

<a href="<?php bloginfo('url'); ?>"><img src="http://files.droplr.com/files/12530702/4Y1s.logo.png" width="297" height="35" alt="" /></a>

Enable PHP.

Set Style to Dark.

In the above code, change the image source to that of your logo.

Americana-clickable-logo-header-modulesettings.png

2. Add the following at the end of your theme's style.css:

.builder-module-1 {
    height: 75px;
}

.builder-module-1 img {
    padding-top: 22px;
}

In the above, change 1 in ".builder-module-1" to the number of module from top in your layout. Height of the module and top padding of the logo image can also be changed to your liking.

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox