CHAPTER 4 • WordPress Theme Essentials 95
oEmbed feature will go with when you’re embedding media using oEmbed, such as YouTube
videos or tweets among other things. They’re used to be a setting for this, but as of WordPress
3.5 and later, it is up to the theme to declare what embed width oEmbed should use.
Next, you have the theme setup function. This hooks on to the after_setup_theme hook,
which means that all the functions you’re including in simpleblog_themesetup() will
be used then. These functions are further down, with simpleblog_register_menus()
for creating two menus using register_nav_menus(), simpleblogregister
sidebars() for creating the right column widget area, and finally, simpleblogload
scripts() to load whatever JavaScript is needed. All these functions are referenced in the
simpleblog_theme_setup() function, which is hooked on to after_setup_theme.
Not too confusing, right? It can be, though, when you add theme options and a ton of other
features. You’ll take a closer look at that in Chapter 6, “Advanced Theme Usage,” and onward;
for now, this is all you need to do.
And you know what — that’s it for the basic theme. The only thing left is to style it
appropriately because without any styling in style.css, it just won’t look any good, as
Figure 4-7 so clearly shows.
Figure 4-7: Believe it or not, this theme only needs some CSS love to look good.