Modify the Width of the New WordPress Twenty Twelve Theme

We just recently switched over to the new Twenty Twelve theme on VoodooPress, and it’s quite a nice theme! But one thing I saw immediately, it’s too narrow! I have been on a kick lately of trying to get all my sites to have nice, lightweight, clean themes. Twenty Twelve fits the bill. But it seems that everyone wants really narrow websites. A lot of folks have bigger monitors, I want to use some of that real estate. I’m not going to cover anything drastic here, but you can go as big or as small as you want with some careful planning. Note that, even though I’m showing how to make the theme wider, this will also work to make the theme narrower. Let’s dig in!

Continue reading “Modify the Width of the New WordPress Twenty Twelve Theme”

Make an Interesting and Useful Archive or Explore Page for Your WordPress Site

I had set up an Archive page on my personal blog a while ago for folks to Explore the site with. My original intent was to give users a variety of ways, in one place, to locate content which might interest them. My secondary goal was to cut down on widgets in my sidebar. I wanted to put up some cool widgets, but also wanted to list categories, archives by date, etc. Having that all in the sidebar takes a lot of space. I thought an archive page was great way to cut down on sidebar clutter. Here’s my thought process, and some cool tips!

Continue reading “Make an Interesting and Useful Archive or Explore Page for Your WordPress Site”

Google Fonts, Child Themes, and @import

I’ve been trying to work through some issues after getting a comment on one of my fonts articles. It seems some people have been experiencing some problems getting Google Fonts to work on their child theme. So I was messing around with mine, and I experienced the same unpredictability. After messing around with things, I got mine straightened out, maybe this will help you!

Continue reading “Google Fonts, Child Themes, and @import”

Customize Your Excerpt Length Per Template

I’ve seen a variety of posts from people devising different ways to customize the_excerpt length. In WordPress, most people are familiar with 2 ways to display their content: the_content, and the_excerpt. Both give fairly predictable results as to what you get. the_content gives you all of your content, with formatting intact. the_excerpt gives you your set excerpt, stripping away formatting, links, etc. But you had one excerpt length, and that was it! What if you want various excerpts? Well I’ve seen ways to craft various excerpts by creating different functions that had to be called per template, but as of WP 3.3 that is no more! Check it out!

Continue reading “Customize Your Excerpt Length Per Template”

Set Your Featured Image Automagically From the First Image in the Post

Here’s a nifty trick that just came through my RSS reader. Let’s give credit where it’s due first because I didn’t come up with this! It came through my reader from the WP Snippets site, this post right here. We’re going to grab the first image from the post, and set it as your featured image automagically!

Continue reading “Set Your Featured Image Automagically From the First Image in the Post”

CSS3 Lightbox Effect For Your Featured Images

I keep mentioning that I’m slowly working on a custom theme for my personal blog. I work in fits and starts whenever something inspires me. Well today that inspiration struck! I saw this post from c.bavota of bavotasan.com and I really wanted to work this out. One of my main goals for my new theme is to keep things lightweight, and use css whenever possible. This gave me my opportunity! First you’ll need to check out the link above to see how the idea works. Then we adapt:

Continue reading “CSS3 Lightbox Effect For Your Featured Images”

Reader Request – Use Category Slug Based Images for Posts

One of our VoodooPress readers had a question recently. Seems they were using the front end posting form we started talking about here.¬†They became concerned that allowing users to upload new images for every post using this technique would soon fill their hosting allotment. That’s a valid concern. Let’s look at one possible technique here.

Continue reading “Reader Request – Use Category Slug Based Images for Posts”

Preserving Pagination With Query Posts – Why Do My Page 1 Posts Appear on Page 2?

So you’ve made a custom template of some sort, or you’ve tried to exclude a category from your home page. You used query_posts because that’s what all the cool kids are doing. But now when you click to go to the next page of your site, it says page 2, but you see all the same posts as page 1. Why is WordPress lying to you? Let’s take a look!

Continue reading “Preserving Pagination With Query Posts – Why Do My Page 1 Posts Appear on Page 2?”