
05
Working with Blog templates
We are finishing the final touches on the site and are getting ready to re-launch. The blog template was a mess, but coming out of it we have a better template for the exercise.
Here are some things we took away from the template rewrite:
- Reduce code redundancy
- Use include files where possible
- Define adsenseID as a constant in one location making it easy to change
- Don’t add text to your header graphic
- instead put your text on top of it. That way the template can easily be moved to another site and the only thing needed to change is the header graphic wordpress takes care of the rest
- Use include files for each Google Adsense code snippet, this will allow quick modifications
We hope this helps.
Leave a Reply