Want ultimate design power and freedom? If you have a good reason to break usability - and you can register some widget areas - you can make a site look like anything that makes sense for your site.
6. Here’s a slide from last summer, complaining about phone views that look too much alike.
Should we change things up every time we get a hankering to try something new?
7. Not if you follow the gospel of the heat map. Where the eyeballs go, so must the content.
11. We can make the
eyeballs go where WE
want.
We’re designers.
We can make the eyeball go wherever we please!
Which is great if the situation calls for a new approach.
12. We can make the
eyeballs go where WE
want.
If our users are looking for visual stimulation. Inspiration. Excitement.
14. In which case, a little more attention to the heat maps might be a good idea.
This is my young friend Jimminy, a developer who splits his time between West Virginia and the Bay area. He spends a lot of time around regular people - who are
actually just like the rest of us when we’re trying to get stuff done.
15. I saw this tweet of his a couple days ago - just as I was thinking about how we have all this power - the power to direct the eye.
16. Now, sometimes we do need to break away. We’re building something new. (My poor husband. He sees these tennis balls every damn day, practically.)
As a home page goes, this site - a Genesis site, btw, is pretty out there. No header. No footer. Main navigation around the ball.
17. But it didn’t come from nowhere. There was this folder, first.
18.
19.
20.
21.
22.
23. So. How do we execute this in Genesis? Or any other theme?
31. Before.2
3
4
1
Let’s start with the markup.
This is a home page, but it could be any page - a blog page, a special page you’ve created for a reason - even an archive page.
But this happens to be an Underscores home page.
We’ve got our main content area, with the Loop and then two sidebar widgets.
40. Genesis.
Same three files.
It looks more complicated and codey, but it’s really not.
For one thing, there’s about a million people writing code snippets we can just drop in.
42. So with Genesis - I saw there was a sticky header menu already hard-coded in the Minimum Pro theme, so I decided to leave it. So let’s go through the process one
more time.
46. The code to make the asides is pretty much identical to the Underscores code.
You can add markup, like …
47. Underscores:Widgeted area with markup.
Underscores, if you want. Generally, I only add it when I’m changing the style of the widget title. I mean, really - h4?
But the only arguments you really need are those first three: id, name and description.
(Now, this is not a CSS id - I’m not big on those. I greatly prefer classes, and in fact I make these IDs class names, or parts of class names.)
If you want more control, you can add the before-widget and after-widget arguments, and give them some markup too. Again, just like Underscores.
48. front-page.php
Laying out the widgets is pretty straightforward. I just found a recent article that showed you can do it without the action hook - almost exactly like Underscores. But I
KNOW this works.
I commented out the loop, but I could just as easily have blown it away. If I wanted a bunch of post excerpts above or below the widgets, the loop will bring ’em in.
50. Widgets panel.
Now let’s add the Featured Posts … without rewriting the markup, I might add, the way I did with the plugin we used with Underscores.