Rockable.Press.Rockstar.WordPress.Designer.Revised.Edition.2010

Page 155

155

Building a Basic Theme: Creatif Blog

If we now test the theme you’ll see that only ‘Home’ and ‘About’ are showing up, what’s with that? That’s because you don’t have any Pages added on your site! Open up the WordPress Dashboard, and select Pages > Add New, add a title, fill in some dummy content, click “Publish” and if you flip back to your site that page will now magically appear in your navigation. Say hello to the power of a dynamically managed site! Note that instead of using wp_list_pages, it is actually possible to simply place static links by getting the Permalink for each page and manually coding them in, like this for example: <li><a href="http://example.com/about/" title="about">About</a></li>

However you should generally only do this if the theme is for personal use as you have no control over whether other blog users will create pages with the exact same link structure, and your theme may end up with broken links in the navigation.

WordPress .0 Navigation Menus Navigation Menus are a great new feature with WordPress 3.0. So far, WordPress has been limited to Page-only or Category-only menus, but now the navigation menus allow any combination of page links, category links, external links, custom links, anything at all. Read on to find out how to integrate the navigation menus into your theme.

Download from Wow! eBook <www.wowebook.com>


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.