Copy your index.php and rename it to something else like store.php.
strip out the call to the sidebar.
place the link to store.php as the link to your store.
Thanks jetshack. I renamed and stripped the sidebar call. Excuse my novice approach but how am I placing the link to store.php?
so you have a file called store.php that is baiscally just the index.php file with the sidebar stripped out?
If that’s the case then add
<?php /* Template Name: Snarfer */ ?>
to the top of that page. at that point when you either create a new page or edit an exisiting one you’ll have a new option available… there should be a drop down box on the right of you edit page which says Page Template. Select that template page as the template to use for your store.
more info here
I found these instructions very helpful. I think I followed them correctly. But while the sidebar is removed, my store’s frame is still cutting off as though the sidebar were still there.
I assume there is some additional code that needs to be edited or removed, but I’m too novice to spot it. Anyone out there with a solution?
Here is the edited code for my Snarfer template for the store. (I removed <?php get_sidebar(); ?> )
Template Name: Snarfer
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h5>Posted by <?php the_author() ?> on <?php the_time(‘M’) ?> <?php the_time(‘j’) ?>, <?php echo the_time(‘Y’); ?></h5>
<?php the_content(‘Read the rest of this entry »’); ?>
<div class=”com”><?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></div>
<?php endwhile; ?>
<div class=”left”><?php next_posts_link(‘« Previous Entries’) ?></div>
<div class=”right”><?php previous_posts_link(‘Next Entries »’) ?></div>
<?php else : ?>
Sorry, but you are looking for something that isn’t here. Please, go back or try another search.
<?php endif; ?>
<?php get_footer(); ?>
- The topic ‘Adjusting Frameset’ is closed to new replies.