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
Vaughn Emmons
1,189 PointsWhy does "Preview" not show my current work?
The Preview function is not displaying my current input. It only shows my last saved input. I have saved my work, and closed and reopened workspaces. The problem persists. Is the preview function currently broken?
5 Answers
Joshua Harman
8,821 PointsSo I think your problem is that you've got 2 index.html files:
index.html
and
index2.html
The data that you are wanting to use is in your index2.html file, but you want it to be in your index.html file, which is the file that is read for your webpage.
So you'll need to delete your original index.html and rename the index2.html file (to index.html)
Does that make sense?
If not, just delete them both, make a new index.html file, and paste this in it: (the code from your index2.html file)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vaughn Emmons | Web Designer</title>
</head>
<body>
<header>
<h1>Vaughn Emmons</h1>
<h2>Web Designer</h2>
</header>
<section>
<p>Gallery will go HERE</p>
</section>
<footer>
<p>© 2015 Vaughn Emmons.</p>
</footer>
</body>
</html>
I hope this helps!!!
(PS if someone answers your question and it helps, get in the habit of giving those around you an "upvote" or a "Best Answer".
It makes them feel good, and you'll find you need them (upvotes and Best Answers) later on, and also -others may return the favor!!! )
KEEP UP THE GOOD WORK, STAY ENCOURAGED AND KEEP CODING NO MATTER HOW HARD IT GETS!!!! :-) (and take notes)
Joshua Harman
8,821 PointsHi Vaughn!!
Would you mind attaching a link to your snapshot?
- Open your Workspace
- Click "Snapshot Workspace" (the camera icon left of "Preview Workspace")
- Click "Take Snapshot" then click again to open the Snapshot.
- Copy and share the url link :-)
Matthew Morales
36,545 PointsThe problem is that you have two index.html that are colliding with each other. Like Joshua said, delete both pages and start a new one. It would be the easiest way to solve the problem.
Vaughn Emmons
1,189 PointsThanks Joshua,
I am not seeing my second h2 element, my section or my footer. Only my h1 is appearing. I really do appreciate your help!
Vaughn Emmons
1,189 PointsYou guys have been rad, thanks for the help! I guess I shouldn't have two index files anymore... derp.