I just created a custom template to get rid of the sidebar on an inner page which worked successfully. However, any text I add is still behaving as if there is a sidebar there. Images span full width but text is being confined to the left side as if there is an "invisible" sidebar in place.
To create the custom page I copied page.php and removed the sidebar reference, but I'm thinking something is left in there that's causing this to happen. Here's the code:
/* Template Name: Custom */ <?php get_header(); ?> <div id="wrapper"> <div id="content"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if (has_post_thumbnail()) : echo '<div class="thumbnail-p">'; the_post_thumbnail('full'); echo '</div>'; else: echo ""; endif; ?> <h1 class="page-title"><?php the_title(); ?></h1> <?php the_content(); ?> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?> </div><!--</#content>--> <?php dynamic_sidebar('page-bottom'); ?> </div><!--</#wrapper>--> <?php get_footer(); ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]
I tried removing : <?php dynamic_sidebar('page-bottom'); ?> but that removes the background and still leaves the same issue with the text. Can someone please help?