• 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)
  • 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

    (@immcpeak)

    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!

    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

    (@immcpeak)

    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.