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
Amir Siahpolo
1,354 PointsAdding Titles and Meta Tags
How do I view source from for the Allison Grey portfolio project on my localhost/allisongrays.com? During the video I see basic HTML in a web browser where they view the source, but to the best of my knowledge we are working with MAMP, Wordpress, and have installed the folders in htdocs. When I viewsource in Wordpress I get lot of HTML. I am within the Wordpress environment and I am trying to follow along with the video.
2 Answers
Rogelio Delgado
15,803 PointsI don't remember the exact course you're in, but remember Wordpress is a PHP based CRM, so when you use te console to view the source the PHP is not displayed, but the results of all that PHP code. You need to open the files responsible for the code you;re looking for inside the Wordpress installation, most likely somewhere inside the theme you are working on. Just go to your wordpress root, then wp-content, themes, and all those files are the ones you see displayed in a wordpress page.
Amir Siahpolo
1,354 PointsI am working with the video : Add Titles and Meta Tags under the section 4: Preparing to Code Wordpress. This is in the Library ----> How to Build a Wordpress Theme.
I understand that having had a basic PHP course a long while ago. In the video he goes into his web browser and renders front-page.php, during the video there is NO WP installation and the skin associated with that installation, he demos this in a plain ol' web browser. When I saw this I wonder why the WP skins were not there in his video instruction.
In section 1: Content Strategy with WP we were instructed to setup Wordpress, create custom fields, install MAMP, etc. Then they tell us to create a folder called allisongrayce.com, this give you the WP skins and associated files. Now, I am at level 4: Preparing to Codewordpress and he render this in a plain ol' web browser, visually that is what you see. I wonder why since in Level 1 we are told to build off the WP installation.
I re-did level one and made sure I opened all my files from allisongrayce.com from the htdoc dir and added it a working folder in my text editor Sublime before I did not do this. I skipped that step.
We are instructed to download the demo files which I assume is the same thing as the project files in section 1: Content Strategy for WP. I wish they'd give an overview of how the project is getting built during each level. I fixed that so hopefully now, when I load the 'home' page for allisongrayce.com I can see the result of adding tiles and meta tags.
Thanks for your reply.
Amir Siahpolo
1,354 PointsAmir Siahpolo
1,354 PointsIs there a developer mode in Wordpress? Similar to Firefox development for Javascript? Maybe, this is where I am lost.