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 From Bootstrap to WordPress Setup a Bootstrap Theme Setup Your WordPress Development Environment

Jason James
Jason James
14,947 Points

Stuck on this MAMP for 2 days. My browser is not displaying what you have.

For some reason I'm not getting the results that you are teaching. I even started over to see if I made a mistake. I'm not seeing my errors. I'm wondering if it has something to do with where I'm storing the files (htdocs->bootstrap-to-wordpress->wp-content->themes->bootstrap-to-wp). I did set up passwords and stuff in the initial process. But, when it came to running MAMP no page is showing up like you have in the videos. Should I start over again?

15 Answers

Hi Jason,

I'm not an expert on MAMP, but that file path looks awfully convoluted. Normally the document root (where you store files you want to be displayable via your browser on localhost) is located at: /Applications/MAMP/htdocs. You can check this by opening up MAMP and going to Preferences > Apache.

Within htdocs, you'd then have a folder/directory for your main WordPress installation, with subdirectories like wp-content, wp-admin, etc.The only thing in wp-content should be theme subdirectories.

Jason James
Jason James
14,947 Points

The Apache directory looks like: Applications -> MAMP -> htdocs. This should be correct?
Thank you for responding.

That's right. What do you have in htdocs? Have you gone through the normal WordPress installation yet, or just downloading project files into htdocs? (Just trying to clarify the steps you've taken so far.)

Jason James
Jason James
14,947 Points

Yes, I've done the normal WP install process. When I launch MAMP to localist. I just see a Index file: bootstrap-to-wordpress. Nothing else in the browser.

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi, have you already worked through the course on local WordPress Development? It goes into the steps for MAMP setup a little bit more in depth.

Jason James
Jason James
14,947 Points

Yes, I did got through the Local Wordpress Development. I still have the same issue. I will keep trying.
I really want to get through your course.

If you successfully set up WordPress, what happens when you type: localhost/bootstrap-to-wordpress in your browser's address bar?

Jason James
Jason James
14,947 Points

The only page that pops up in the browser is the index bootstrap to wordpress link. Thats all the action that takes place. I click on it and the page goes blank.

Carole Nissen
Carole Nissen
5,655 Points

I have the same problem - I've even copied all the files from the file download on the course page to try & get it working - I get the same screen as the video until it gets to the bit where the bootsrap css file should link to the index page but the appearance of the 4th one - I'll post elsewhere!

Jason James
Jason James
14,947 Points

I can get to the part where the new theme is selected and once I change themes everything goes to pot all of a sudden. Not sure if I did something wrong. I can't event see the jumbotron theme that we are suppose to customize. I even refresh the page and everything is blank. In my head I'm thinking. Okay, someone hates me.

Hi Jason - sorry for falling of the radar there for a bit (not that I'm helping much :)). So - what version of WP did you install? The blank (I assume you mean plain white?) screen makes me thing the project them you downloaded from TT isn't compatible in some way with the version of WP you installed. (It could also be something really dumb like a blank line at the end of a php file.)

Jason James
Jason James
14,947 Points

I'm using the latest of WP. All I can do is follow the video instructions and I keep coming up with the blank white screen when clicking on my localhost file in the browser. I'll keep trying. I'm determine to at least get started with a working site.
Thank you for your help.

Carole Nissen
Carole Nissen
5,655 Points

Hi Jason, I've just worked my way through this course now but there were a few points I got stuck - it's not an easy tutorial but it's brilliant when you get through it! I don't know if it's any help but I did find that when I got a blank screen like you describe each time it was down to a code error. Do you have a code editor that does debugging? I pasted the code I'd just added (each time it went blank) into Dreamweaver code view and each time it flagged up a line with a code error in it - from there it's really easy to check that bit of code and correct it...it might be worth a try in case you've copied and pasted code and accidentally missed a character off the beginning/end - that could do it!

The only other thing is just wanted to check you have actually pasted in the code from the jumbotron example on the getbootstrap.com website into your index.php file? The wp site will be blank until you've done that (I'm sure you must have done already - just checking!)

Hope this might help... Carole

Jason James
Jason James
14,947 Points

Dear fellow coders. I want to thank you for your time with helping solve this problem. I found my errors in the functions.php. I can't believe it was just a line of code that was in the wrong line. Wow. I excited to move on to the next phase. Thank you again.

Great to hear it, Jason!