Tag Archives: twenty eleven

Three Column – Twenty Eleven

Lots of people have asked how to create a three column Twenty Eleven, so I decided to take NomNom theme and strip it down for those who just need the 3 column layouts.
Simply install, and check Appearance > Theme Options to see 3 new 3 column layouts.
Gallery thumbnails look best at around 125×125 px because of the narrow content with new layouts and will allow 3 gallery thumbs horizontal.

Please comment if you notice an issue.

Download it Now!

Twenty Eleven Three Column

NomNom 1.5 – Twenty Eleven Child Theme and Plugin

I’ve just finished a major update of NomNom child theme. There’s lots of changes and new features in this release. Nivo slider has been added to the header with options which is one of the new features.

Please see the Updated NomNom theme page NomNom Theme which has a full list of features and info.

I’ve also as of version 1.5 removed all shortcodes from NomNom theme. If you were using these shortcodes, don’t worry, I’ve created a plugin which will allow you to keep using them or start using them if you want. You can grab that here

Here is the changelog for 1.5

v1.5 8/31/11 -

Added Nivo Slider to header with options
Added by request author avatar on post titles with on/off option
Added as suggested on/off option for recent related posts
Added comment bubble on/off switch
Added searcform in header on/off switch
Added ajax to Custom CSS section and other areas, most options should not require page reload to save.
Added by request tidy comment CSS (Allows more comment area by using 1 column CSS on all layouts, edit at own risk)
Added tabbed layout options panel. (saves space when future options are added)
Added Site Preview in NomNom Options
Redesigned the comments for all layouts (had no choice it was either all or none, and they looked bad with the 3 column)
Removed all shortcode functions and created plugin
Added default options for all theme options (should look like twenty eleven after install)
Added a class to the body element for all custom layouts .custom-layouts, this will effect all custom layouts.
Fixed header resizing for narrow left/right layouts. (Changed width to max width)
Increased narrow sidebar left and right width by from 850px to 875px.
Adjusted recent related posts position.
Fixed comment list on attachment page.
Fixed attachment page layout for all layouts. *Thanks Steve for pointing that out
Set width and position of comments for custom layouts to match default.

Please post comments here NomNom twenty Eleven Child Theme

NomNom Shortcodes Plugin

Since NomNom 1.5 all shortcodes in previous versions have been removed and added to this plugin instead. The reason for this is that if you decide to use shortcodes from a theme, you’re stuck using that theme if you want your shortcodes to keep working.
Just install this plugin like any other and use the same shortcodes you did before, instructions are in the readme file.

Download it Now!

Tabbed content

You can add tabbed content to any post or page and save valuable space. Instructions on using this shortcode are available on the NomNom Options page you’ll fine in your admin section after installing the theme.

Checklist

are easy to create with this shortcode. Simply create a list and add

Private Content

This members only shortcode comes in handy if you want to allow a file download or any other content just for registered members. To use it, create your content, then wrap it with this

You should see a register/login link below if you are not logged in.
[private]This is only viewable to logged in members[/private]

Columns

You can display post content in two columns using a short code. Don’t confuse this with a two column post layout, it will change the actual content as displayed below.

Use

[half]Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.[/half] [half_last]Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.[/half_last]

PullQuotes

look great on any site and it’s very easy to do with this theme. Simply add your quote, then wrap it with either of these tags.

[pull float="alignleft"]This is a left aligned pullquote[/pull]

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.

[pull float="alignright"]This is a right aligned pullquote[/pull]

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper.

Better Twenty Eleven Comments

I find the comments in Twenty Eleven take up far too much room and it’s always bothered me. I posted some CSS on the forums here that tightened them up a bit, but it had a few issues.

Today while working on NomNom theme, I had it set to the single column layout and noticed the comment avatars were not pushed over the the left side, but instead placed inside the comment box and it looked really nice. I thought, this is just what I need for my narrow layouts and even 3 column layouts as the narrow comment area is precious and doesn’t need to be used up with a bunch of padding and an image.

Here’s before and after screenshots while using my left/right sidebar layout of NomNom.

Anyways, I haven’t decided if I will add this to all the layouts for NomNom, or just for the ones that need it, I try to keep the look of NomNom the same as Twenty Eleven, and just offer options and easy on/off features.

This should work perfectly with any Twenty Eleven theme that hasn’t modified the comments. However, NomNom theme will require a few CSS edits because I adjusted the comments, if you don’t want to risk doing them, just wait until the next version.

Leave a comment and let me know if you think I should add these to all layouts in NomNom, or just the extra ones I’ve added. (I’ve had to edit this code 3 times, if you notice an issue, please report it.)

NomNom 1.5 Testing Live

Ignore the posts the slider images are linked to, they are just for the purpose of displaying the slider so I can test it on a live site. If anyone notices any strange issues with it or any other part of the theme, please let me know by leaving a comment. I’ll be using this on Zeaks.org for a few days before I release it.

- Added Nivo Slider to header with options
- Added by request author avatar on post titles with on/off option
- Added as suggested on/off option for recent related posts
- Removed all shortcode functions and created plugin
- Added default options for all theme options (should look like twenty eleven after install)
- Fixed header re-sizing for narrow left/right layouts. (Changed width to max width)
- Increased narrow sidebar left and right wdth by from 850px to 875px.
- Adjusted recent related posts position.
- Fixed comment list on attachment page.
- Fixed attachment page layout for all layouts. *Thanks Steve for pointing that out
- Set width and position of comments for custom layouts to match default.

If you would like to test new versions of NomNom before I release them, email zeaks @ live.ca (remove spaces)

Add Second Menu to Twenty Eleven Theme

Adding a secondary menu to Twenty Eleven theme is really easy. This feature is available in my NomNom Child Theme and I’ll show you how I did it. We’ll be doing this by making a child theme and creating 3 files.
secondary menu twenty eleven theme
Create a folder and pick a name for your theme.
Create a style.css file
Create a functions.php file
Copy header.php from Twenty Eleven theme and add it to your theme folder.

Upload everything to wp-content/themes, all files should be inside your new theme folder.
We will start off by adding the function to create a new menu. Open functions.php and add this to it.

Save and close functions.php. This bit of code registers a second menu.
Next we need to add the code to the header in the proper place to display the menu, so open header.php that you copied from Twenty Eleven and around line 76 find

Below this line add

Save and close header.php. This is basically a copy of the primary navigation code with the ID access2 used instead of just access. We’ve also used fallback_cb which as it says on the codex “Given a theme_location parameter, the function displays the menu assigned to that location, or nothing if no such location exists or no menu is assigned to it. ” This will prevent the new menu from listing pages as most people will not want the top and bottom menus to show the same menu items. If we create a menu and add items to it, it will display them, otherwise it will not appear.

The last thing for us to do is style the menu, so open your style.css file. Since we’re creating a child theme add this top the top of the file.

This tells WordPress that this is a child theme of Twenty Eleven. You’ll probably want to select a different name and URL for yourself.

Now below that add the CSS below for the menu and save style.css. This is basically the same CSS the original menu uses, but using our new #access2 ID.

Log into your admin, appearance > themes, select your new child theme and check appearance > menus, create and add a new menu to your new menu area.

NomNom Twenty Eleven Child Theme v1.4

Here’s the new version of NomNom theme. This version features 3 new 3 column layouts, left and right sidebars, 2 left or 2 right with a 1000px width. A new widget area had to be added for this, on 2 column layouts that widget will display under the primary sidebar widget.

For those who want to show only the top menu, there’s now an option to turn the lower navigation menu on or off, and the menus will work as default on first install (will once again list pages).

The header can now be re-sized from NomNom Options page, you must upload a new image to see the changes. And the last new option is a custom CSS area. You can add any CSS to this without editing stylesheets, it will override the theme default style and will not be overwritten during an upgrade. I’ve also included a link to a new CSS Snippet forum post that I will continue to update.

And one last fix, the options page should display properly in IE.

Please let me know of any issues with the new layouts or anything else.

Download it Now!