• I want to use dif. footer.php for a page template.
    The main page has 3 cols and want to have only 1. I use the copyblogger theme and have managed to hide the (right) sidebar but not the left.php file. The <?php include (‘left.php’); ?> line of code is in footer.php but when I try edit it out things go astray and lose the content of the page aswell.
    My new page template code is this….

    <?php
    /*Template Name: shop-page
    */
    ?>
    <?php include (‘shopheader.php’); ?>

    <?php /*get_header();*/ ?>

    <div id=”content_box”>

    <div id=”content” class=”page”>

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

    <h1><?php the_title(); ?></h1>
    <div class=”entry”>
    <?php the_content(‘<p>Read the rest of this page →</p>’); ?>
    <?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>
    </div>

    <?php endwhile; endif; ?>

    </div>

    <?php /*get_sidebar(); */?>

    </div>

    <?php get_footer(); ?>

    but php coding is weak to know how to link with new footer.php that has the left.php left out without breaking the content etc

    I hope this make sense
    can any one Help??

Viewing 1 replies (of 1 total)
  • Thread Starter wireless

    (@wireless)

    Fixed it ….I moved the <?php include (‘left.php’); ?> line of code into the page.php template and it still worked

Viewing 1 replies (of 1 total)
  • The topic ‘want to use dif. footer.php for page template – stuck how to link template to it’ is closed to new replies.