With more and more people customizing Directory I figured it was time to create a proper article which outlines the best way to tweak CSS and PHP in Directory. My initial plan was to release it as a blog post, but the size of the article got out of hand so it had to be moved over the Docs site. Please click here to open the Directory customization article. In short, the best way to customize Directory is to utilize either a child theme or a plugin. The article linked above focuses mostly on customizing with a plugin since a number of you are already using a child theme (City Guide, Locations, etc). By placing custom code inside a plugin we eliminate the danger of losing our modifications after updating the theme to the latest version. One important thing you should keep in mind before starting with customizations is that the article is focused on people with past customization experience. In case you’re new to WordPress, and especially HTML, CSS and PHP you might want to build upon those skills first. The point of the article is to demonstrate the best technique for customizing Directory, it doesn’t go into specifics of how to actually customize PHP code. Useful resources to get started Codeacademy – learn HTML, CSS and PHP with expertly written interactive tutorials. Introduction to Hooks – a comprehensive WP Candy tutorial on how to use action and filter hooks in WordPress. How to create a child theme – an easy-to-follow article about creating child themes in WordPress. WordPress Codex – the ultimate source when customizing anything WordPress-related. If you have any questions about the customization article feel free to post them here in the comments or inside our forums.
The post What is the best way to customize Directory? appeared first on Templatic.