Zeaks Blog

Wordpress Themes Tips and Code Snippets

Main menu

Skip to content
  • Home
  • Themes
    • NomNom Theme (New!)
    • Leggero Theme
    • Fluxbb Weaver
    • Twenty Ten Themes
      • Twenty Ten Slider
      • TwentyTen Options
      • 2010 Cataclysm
      • SimpleTen
  • Categories
    • Downloads
    • Plugins
    • Child Themes
    • Twenty Eleven Posts
    • Twenty Ten Posts
  • Code Snippets
  • Child Theme Basics
  • Forums

Category Archives: Code Snippets

Add a note to your comment form

Posted by Zeaks in Code Snippets and tagged with comment form hooks, comment form message, wordpress 3.0 October 17, 11
shortcodes

Here’s a code snippet you might find useful if you ever want to add a message to your comment form to display posting rules or something similar. We simply create a function that adds a custom message and hooks into … Keep reading →

12 Comments

Twenty Eleven Theme – Change Sidebar Width

Posted by Zeaks in Code Snippets, Twenty Eleven and tagged with sidebar width, twenty eleven theme September 3, 11
2011-dark

Here I’ll show you how to change the sidebar width of Twenty Eleven theme. Twenty Eleven uses a fluid width, so widths are defined as percentages instead of pixels, which can be a bit confusing if you’re not used to … Keep reading →

69 Comments

Better Twenty Eleven Comments

Posted by Zeaks in Code Snippets, Twenty Eleven and tagged with tips, twenty eleven August 29, 11
comments-after

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 … Keep reading →

24 Comments

Add Second Menu to Twenty Eleven Theme

Posted by Zeaks in Code Snippets, Twenty Eleven and tagged with tips, twenty eleven August 24, 11
secondary-menu-twenty-eleven

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. Create a … Keep reading →

36 Comments

Easily add Wp-PageNavi to Twenty Eleven

Posted by Zeaks in Code Snippets, Twenty Eleven and tagged with page navi, tips, twenty eleven July 24, 11
wp-pagenavi-2011

Adding Wp-PageNavi plugin to Twenty Eleven is a bit different than adding it to Twenty ten. The code must be placed into functions.php instead of the loop. This code will only work with a child theme, you’ll have to modify … Keep reading →

11 Comments

Add sidebar to post view in Twenty Eleven theme

Posted by Zeaks in Code Snippets, Twenty Eleven and tagged with sidebar, tips, twenty eleven July 23, 11
sidebar-twenty-eleven

By default Twenty Eleven doesn’t display a sidebar on the post view page, but this can be added fairly easy. TricksMommy.com describes how this can be done by editing CSS. I ran into a few issues doing it this way. Using … Keep reading →

16 Comments

Add a default post thumbnail to your theme

Posted by Zeaks in Code Snippets and tagged with excerpt, post thumbnail, tips, twenty eleven June 22, 11

This bit of code will add a selected default thumbnail to your WordPress posts. You can see it in action by scrolling to the bottom of the front page of this site and clicking page number 10 or higher. (didn’t … Keep reading →

1 Comment

Add all WordPress Post formats

Posted by Zeaks in Code Snippets and tagged with code snippets, twenty eleven, twenty ten June 21, 11

This will enable all WordPress post formats to your theme. Open functions.php and add this to it. Now view your post editor page and on the right you should see all the different post formats that were just added. This … Keep reading →

2 Comments

First post as full rest as excerpts

Posted by Zeaks in Code Snippets and tagged with code snippets, twenty eleven, twenty ten June 16, 11

This code will allow you to show the full first post (when using excerpts) and show the rest as excerpts. Open your loop and where it says Replace it with

6 Comments

Post view count without a plugin

Posted by Zeaks in Code Snippets and tagged with code snippets, twenty eleven, twenty ten June 8, 11

This code will count post views and display it in your theme. Open functions.php and add this to it. Open single.php and find this Under it add this. In your loop, add this wherever you want it to appear.

5 Comments

Recent Comments

  • Gravatar icon of joanna joanna
    February 22, 2012 (10:26)
    NomNom - Twenty Eleven Child Theme
  • Gravatar icon of Bethany153 Bethany153
    February 22, 2012 (9:45)
    Easy Share Buttons
  • Gravatar icon of Lawrence Vision Lawrence Vision
    February 22, 2012 (2:13)
    NomNom - Twenty Eleven Child Theme
  • Gravatar icon of Zeaks Zeaks
    February 22, 2012 (1:25)
    NomNom - Twenty Eleven Child Theme
  • Gravatar icon of Lawrence Vision Lawrence Vision
    February 21, 2012 (11:48)
    NomNom - Twenty Eleven Child Theme

Forum Activity

  • Question For Zeaks
  • How do I create a Header Slideshow in WP?
  • How to Change Author name
  • 2-Column Layout
  • sidebar template

Popular Posts

  • NomNom - Twenty Eleven Child Theme (347)
  • Twenty Eleven Theme - Change Sidebar Width (69)
  • Show Excerpts and Post Thumbnail Twenty Eleven Theme (42)
  • Add Second Menu to Twenty Eleven Theme (36)
  • Twenty Eleven comments and Search for Twenty Ten - By request! (31)
Follow @ZeaksBlog

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Show your support

If you've found this site helpful and want to show your support, any donations are appreciated. Thanks!

Supporters
  • Darleene - Wedding Decorator Blog
  • Stergos - E-Hacking
  • Steve - Japan it Up
  • Wolf - Quest4Belonging

Helpful Links

  • Border-Radius
  • Code Beautifier
  • CSS3 Generator
  • DesignerField
  • DigitalRaindrops
  • Privacy Policy
  • Theme.fm
  • Throwing a Brick
  • Transformation Powertools
  • VooDooPress
  • We Love CSS

Proudly powered by WordPress

Post navigation

← Older posts