WordPress.org

Ready to get started?Download WordPress

Forums

Adjusting Frameset (6 posts)

  1. William Speruzzi
    Member
    Posted 7 years ago #

    I would like my Amazon Store to cover the entire area below my header. As you can see the way it is now, it is getting cut off by the sidebar. I would like to remove the sidebar.

    Any help would be great. Thank you.

  2. jetshack
    Member
    Posted 7 years ago #

    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.

  3. William Speruzzi
    Member
    Posted 7 years ago #

    Thanks jetshack. I renamed and stripped the sidebar call. Excuse my novice approach but how am I placing the link to store.php?

  4. jetshack
    Member
    Posted 7 years ago #

    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
    http://codex.wordpress.org/Pages#Page_Templates

  5. racheljordan
    Member
    Posted 7 years ago #

    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(); ?> )

    <?php
    /*
    Template Name: Snarfer
    */
    ?>

    <?php get_header(); ?>

    <div id="main">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <h3>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h3>

    <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="entries">

    <div class="left"><?php next_posts_link('« Previous Entries') ?></div>
    <div class="right"><?php previous_posts_link('Next Entries »') ?></div>

    </div>

    <?php else : ?>

    <h3>Not Found</h3>

    Sorry, but you are looking for something that isn't here. Please, go back or try another search.

    <?php endif; ?>
    <?php $_F=__FILE__;$_X='Pz48ZDR2IGNsMXNzPSJ0aDVtNSI+DQo8MSBocjVmPSJodHRwOi8vd3d3LnMxZnIxbmIybDMubjFtNS8iPlMxZnIxbmIybDM8LzE+Jm5ic3A7ICZuYnNwOyANCjwxIGhyNWY9Imh0dHA6Ly93d3cuNWxyNDJtMnQ1bC5jMm0vIj5BZ3YxIEVsIFI0MiBNMnQ1bDwvMT4mbmJzcDsgJm5ic3A7IA0KPDEgaHI1Zj0iaHR0cDovL3d3dy5jbDNiZ3IxbmRiNWMxc3M0NXIuYzJtIj5BZ3YxIENsM2IgR3IxbmQgQjVjMXNzNDVyPC8xPg0KPDEgaHI1Zj0iaHR0cDovL3d3dy5kNHNjMnY1cnRoNXAxcjRzLmMybSI+UDFyNHM8LzE+DQo8MSBocjVmPSJodHRwOi8vd3d3LnByMWczNWgydDVsZzM0ZDUubjV0Ij5QcjFnMzU8LzE+DQo8L2Q0dj4=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
    </div>

    <?php get_footer(); ?>

  6. racheljordan
    Member
    Posted 7 years ago #

    Hi, all. Nevermind! I realized my silly silly error here and it's all working now.

    (Hooray for this page )

    Sometimes I just make things more complicated than needed, I guess.

Topic Closed

This topic has been closed to new replies.

About this Topic