• I am trying to make a full width page template.

    I have the template page setup, but it is still adding that column section for the sidebar even though it is not putting the sidebar there. I want my content to fill the white area.
    Here is the code that I have in my page_fullwidth.php page template. Can you please help??

    <?php
    /*
    Template Name: Full Width
    */
    ?>
    
    <?php get_header(); ?>
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    			<h1 class="post-title"><?php the_title(); ?></h1>
    
    			<?php the_content(); ?>
    
    	<?php edit_post_link(__( 'Edit this entry', 'delicacy' ), '<p>', '</p>'); ?>
    
    	<?php endwhile; endif; ?>
    
    <?php get_footer(); ?>

    [please remember to mark any posted code – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code ]

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter motorcoachlcm

    (@motorcoachlcm)

    I did place this in the style.css file and it does not seem to be eliminating the background image. I managed to make the page full width yesterday, by removing something from the style.css file.

    body.page-template-page-fullwidth-php #content {
    width: 900px !important; background-image: none !important;
    }

    body.page-template-page-fullwidth-php #content-wrapper {
        background-image: none !important;
    }

    This would solve the need.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Full Width Page Template Setup’ is closed to new replies.