From the course: WordPress and Genesis: Building Child Themes from Scratch

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Prepare your theme

Prepare your theme

From the course: WordPress and Genesis: Building Child Themes from Scratch

Start my 1-month free trial

Prepare your theme

- Even though I'll be hearing the code for this theme I built in the course up on GitHub, it's not polished code that I used on a real project. If you plan to use your theme on a real project or distribute it, you'll want to put your theme to the ringer, so to speak. Here's some things you want to do. You want to document your code. Clean up your code. Validate that your code works. Check it across different platforms, devices and browsers. And finally, check it for web accessibility. Let's talk about each of these and a little bit more detail. We've talked throughout the course about the importance of documenting your code. And that is documenting it whether it's PHP, CCS, JavaScript or any other kind of code. If you're ever in doubt about how to best comment or document your code, be sure to check the documentation standards at wordpress.org. Next, you want to clean up your code. There maybe some opportunities to streamline some CSS styles for example, you might be able to combine…

Contents