Building a 'Responsive' Adsense Widget for the Twenty Twelve Theme

UPDATE 07/31/2013: Google has finally offered up the beginnings of a solution – quite similar to what we have been using. You can check out my article here!

NOTE: My adsense account has been deactivated. And the fine folks at Google simply don’t bother explaining why they deactivate accounts – they just do it. If I ever find out why I will forward that info on. For now, I would recommend you do not use the guide I have below – in case that is the problem.

Over the past two days, I’ve put up a couple articles relating to widgetizing the twenty twelve header and guidance for adding multiple items up there while accounting for 2012’s responsive nature. I wanted to finish up today by showing my solution for running Google Adsense ads to the header while still maintaining the responsive nature of the theme as best we can, let’s dig in!

Continue reading “Building a 'Responsive' Adsense Widget for the Twenty Twelve Theme”

Adding a Login Function to Our Twenty Twelve Header Widget Area – And Responsiveness Considerations

Yesterday, we started the basics for adding a widget area to the soon to be new default WordPress Twenty Twelve theme. I personally wanted to have advertising up there, plus login and registration options. I use custom login and registration pages on VoodooPress, so the standard links don’t work – I need to provide working links. I’m going to show my code for adding that login feature, of course. But I also want to show you this for a bigger reason – 2012 has a responsive setup and if you alter the theme, you need to consider that with your changes. Let’s take a look at what I have now!

Continue reading “Adding a Login Function to Our Twenty Twelve Header Widget Area – And Responsiveness Considerations”

Adding a Narrow Sidebar on Each Side of TwentyEleven Single Post View

I decided to add some sidebar action to the single post view of twentyeleven. It was actually a tough decision. I really did like the clean, distraction free, clutter free single post view that the theme has by default. However, I noticed a sharp drop in my adsense revenue. I’m not making a killing here, heck, I don’t even cover my hosting costs. But the little bit I did get was nice, like a little reward for trying to help the community. So I decided to drop in a sidebar. And, because I’m always trying to make things difficult on myself, I added in 2 sidebars, one on each side of the content. Let’s check out how to get that done.

Continue reading “Adding a Narrow Sidebar on Each Side of TwentyEleven Single Post View”

Add a Widget Area Under Your First Post, Great For Ads or Pictures

I’m always experimenting with VoodooPress. This time I was looking to place a widget area under my first post. Personally I was looking to experiment with ad placement. I’m not sure if I’m sold on this location or not. But if I change my mind, this widget area could be useful for so many other things like images, or recent/popular post thumbnails. Let’s take a look at adding this widget area.

Continue reading “Add a Widget Area Under Your First Post, Great For Ads or Pictures”