Title: page.php Edit Mistake
Last modified: August 19, 2016

---

# page.php Edit Mistake

 *  [immcpeak](https://wordpress.org/support/users/immcpeak/)
 * (@immcpeak)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-edit-mistake/)
 * I am NOT code savvy. I cannot link my site b/c I’m developing it on my Mac using
   MAMP internal server.
 * I was adding Dynamic Content Gallery and had it working great by inserting its
   code into page.php.
 * Then I tried to center it and failed, so I tried to restore what I had before.
   I thought I did it fine, but I clearly lost some of what should be there on the
   way.
 * Can someone please look at this and tell me what it SHOULD say? I have a feeling
   I’m only missing a line or a symbol or something (probably near the bottom, as
   I had the DCG code just before footer).
 * Many thanks.
 *     ```
       <?php
   
       /**
        * @package WordPress
        * @subpackage Default_Theme
        */
   
       get_header(); ?>
       <div id="wp_content_wrapper" class="autoheight">
       	<div id="wp_content" class="autoheight content_typography">
       		<div id="wp_content_single">
       			<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
       				<div class="post" id="post-<?php the_ID(); ?>">
       					<h2 class="posttitle"><?php the_title(); ?></h2>
       					<?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
       					<div class="fix"></div>
       					<?php wp_link_pages(array('before' => <div
       '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
       				<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
       				</div>
       				<?php if($post->comment_status == 'open') comments_template(); ?>
       			<?php endwhile;  edit_post_link('', '<p>', '</p>');  else: ?>
       			<div class="post">
       			<p>Sorry, no posts matched your criteria.</p>
       			</div>
       			<?php endif; ?>
   
       		</div>
       	</div>
       <?php get_footer(); ?>
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-edit-mistake/#post-1381397)
 * why not just upload a fresh copy of your theme’s `page.php`
    and then make a 
   back up as you make changes
 *  Thread Starter [immcpeak](https://wordpress.org/support/users/immcpeak/)
 * (@immcpeak)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-edit-mistake/#post-1381399)
 * That sounds like a great idea. How would I find that? I’m using one from wpthemebuilder.
   com (so I sorta customized it). I wouldn’t know where to find a fresh copy. Thanks!
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-edit-mistake/#post-1381400)
 * you don’t still have the theme saved on your computer? the page.php should be
   in there
 * if not, can’t you download the theme again and grab the page.php?
 *  Thread Starter [immcpeak](https://wordpress.org/support/users/immcpeak/)
 * (@immcpeak)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-edit-mistake/#post-1381493)
 * Someone told me there was a <div in there that shouldn’t be and it fixed.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘page.php Edit Mistake’ is closed to new replies.

## Tags

 * [disappeared](https://wordpress.org/support/topic-tag/disappeared/)
 * [page.php](https://wordpress.org/support/topic-tag/page-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [immcpeak](https://wordpress.org/support/users/immcpeak/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/pagephp-edit-mistake/#post-1381493)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
