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

Connie Chiu
Courses Plus Student 892 PointsCreating new index html page without overwriting existing one
Hi, can anyone tell me how to to create new index html pages with different set of codes without overwriting existing page? Thanks!
11 Answers

Brandon Escalante
5,772 PointsCurious, to why would you need two index.html
files? But, I guess you could put it in a new separate folder.
Site > Index.html (Original) > (New Folder) > Index.html (New) ?
Though, I'm not sure if that will work with whatever you're doing. What are you trying to make happen?

Connie Chiu
Courses Plus Student 892 PointsThank you Brandon for responding. I was following along the Bakin' Cupcake Company codes while trying to use the same set of codes to create a site using my own photos. How is that done? Thx!

Brandon Escalante
5,772 PointsNo problem Connie! I'll try and help the best I can.
So you're following along the lesson and would like to use how the Cupcake Company's Site is laid out, to use as a practice personal site?

Connie Chiu
Courses Plus Student 892 PointsYes.

Brandon Escalante
5,772 PointsConnie, what I would do then is completely duplicate that Cupcake Site folder, rename it to whatever you'd like, maybe Connie's Awesome Site! and practice working in there, adding your own content.
That way you don't have to deal with the two Index.html
files you were referring to up top.
Does that help at all?

Connie Chiu
Courses Plus Student 892 PointsThanks Brandon, I am a newbie here, so it will take me a while to get this. I downloaded the Cupcake Site folder...I see the image folder and the various css folders, but did not find the file with the back-end codes. Is that available? I assume that's what you suggested me to copy?

James Barnett
39,199 Points@Connie -
Have you watched the Introduction to text editors video yet?
It covers how to create your own version of index.html

Connie Chiu
Courses Plus Student 892 PointsYes, I watched the video several times. But, I eventually figured it out by searching online on "how to save sublime project": I needed to "Add folder to Project" in order to see the working directory. That also allows me to work on multiple folders at the same time...at least that's what it appears to be. It is a matter of asking the right questions to get my answers. Thanks for your help.

James Barnett
39,199 Points@Connie - I love it when people can figure out their own issues and then share with the group how they solved it

Connie Chiu
Courses Plus Student 892 PointsJames and Brandon, thank you for helping!

Brandon Escalante
5,772 Points@Connie - No sweat! Sorry I wasn't too much help. But as with @James I am glad to see you figured the problem out for yourself. Sometimes it's as simple as finding the correct way to ask your question. Good luck =) !