Title: structure theme with page
Last modified: August 18, 2016

---

# structure theme with page

 *  [ofi](https://wordpress.org/support/users/ofi/)
 * (@ofi)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/structure-theme-with-page/)
 * Can someone help me structure theme to page, the fim_photos.php use its own default
   template structure. i need to tweak that default structure to match the structure
   of the WordPress theme i am gonna use, not sure how to do this.
 * page [http://www.koddinn.com](http://www.koddinn.com)
    gallery page, trying to
   fix [http://www.koddinn.com/myndir](http://www.koddinn.com/myndir)
 * here is the fim_photos.php
 *     ```
       <?php define('FIM', true); ?>
   
       <?php include("../../../wp-blog-header.php"); ?>
       <?php require_once("functions/fim_functions.php"); ?>
   
       <?php get_header(); ?>
   
       <div id="content" class="narrowcolumn">
   
       		<div class="entry">
       			<?php echo fim_get_the_content(); ?>
       		</div>
       </div>
       <?php get_sidebar(); ?>
   
       <?php get_footer(); ?>
       ```
   
 * i need to let it look like the structure of the theme i am gonna use. page.php
 *     ```
       <?php get_header(); ?>
       		<div class="main-narrow">
   
       			<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
       			<div class="post" id="post-<?php the_ID(); ?>">
       				<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
       				<div class="entry">
   
       					<?php the_content(); ?>
       					<?php link_pages('<strong>Pages:</strong> ', '
       ', 'number'); ?>
   
       					<?php edit_post_link('Edit', '', '
       '); ?>
   
       					<!-- <?php trackback_rdf(); ?> -->
   
       				</div>
   
       				<div class="comments-template">
       					<?php comments_template(); ?>
       				</div>
   
       			</div>
       			<?php endwhile; ?>
   
       			<?php else : ?>
       			<div class="post">
       				<h2><?php _e('404 Error: Not Found'); ?></h2>
       			</div>
       			<?php endif; ?>
   
       		</div>
   
       <?php get_footer(); ?>
       ```
   

The topic ‘structure theme with page’ is closed to new replies.

## Tags

 * [structure](https://wordpress.org/support/topic-tag/structure/)

 * 0 replies
 * 1 participant
 * Last reply from: [ofi](https://wordpress.org/support/users/ofi/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/structure-theme-with-page/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
