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

Why does my functions.php file look so different?

I'm using the same 2013 theme but my functions.php file has 552 lines of code and doesn't have the parts that mentioned in the videos. I'm very confused and unable to follow.

2 Answers

Marcel van Zuuren
Marcel van Zuuren
4,960 Points

If you like to dig in a little deeper you can see the individual functions.php files of different versions. For instance the link to the files of the twentythirteen theme: https://themes.trac.wordpress.org/log/twentythirteen/

The official WordPress themes (Twentythirteen, Twentyfourteen, etc) go through updates, so it could be that your version is more updated that what you see in the videos, which is why there are more lines of code.

Hope this helps!