Completely customstreamlining your theme

In Chapter 3, we included our own custom sidebar using the previous technique. You can also use the WordPress template path inside a basic PHP include function. This technique can come very handy in helping you streamline your theme's code and help keep it easily updatable.

For instance, my index.php, page.php, and category.php pages have different headers and slightly different uses of The Loop, but they all have the exact same page navigation code. This bit of code is small yet, if I ever want to tweak my internal navigation layout, I'll need to touch all three of those pages.

Creating And Writing Your Blog

Creating And Writing Your Blog

The success of a blog lies in the content. It is the content and the key words that consistently attract potential customers. Great blog content literally means something different on every blog. Great blog content is researched and not impulsive. You cannot treat the blog as an experimental playground and expect it to work for you. It is designed to mean business and make you presence felt online and you have to ensure it performs the way you want it to.

Get My Free Ebook


Post a comment