Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Amanda Moore
Amanda Moore
4,151 Points

Editing a wordpress child theme

I am doing some w3 validation checks for a friend's site and I can't figure out how to get to the code so i can edit it. he's using a child theme for genesis and the code I need to edit isn't showing under the child theme and when I look at the genesis files it says not to edit anything there. So, where can I fix the validation errors? Thanks

1 Answer

Well you probably can't or don't want to bother. Validation is not a gospel, it's just a way for programmers to understand where their code has problems or might be malformed. Like any other parser, sometimes the validator will choke on code that's actually 100% valid. That doesn't mean there's not a problem in the code but trying to chase down a valid site with a CMS is probably a fool's errand, and arguably not even valuable.

It really depends on what those validator errors are if they are actually important. There's nothing a working valid site gains over a working non-valid site, really just for being valid.

That being said, it's possible to dump specific parts of the Genesis code and replace it with your own. That's just a matter of figuring out what's running on a particular hook and using a remove_action() on it.