1 specific sidebar on a page instead of 2, how?
-
I Have made a custom template and i want only 1 sidebar to appear on this page instead of 2. How can i do that?
This do not work :
<?php get_sidebar('secondary-sidebar'); ?>
<?php /* Template Name: Cover Page */ ?> <?php get_header(); ?> <div id="main"> <?php get_sidebar('secondary-sidebar'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div style="width:850px; margin-left: 350px !important} <?php the_content(' <div id="content" class="widecolumn"> Read the rest of this page ?</p>'); ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> <?php endwhile; end: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </div> </div><!-- #main --> <?php get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘1 specific sidebar on a page instead of 2, how?’ is closed to new replies.