I want to create a full-width page template that I can use for a static home page.
I want to be able to adjust the white space around the text so that it displays in a narrower text body, centred, on this page.
Following what I read in another thread, I:
1. Opened the page.php file, copied it and renamed it: "Fullwidth page."
2.Then I added this code to the top:
Template Name: Fullwidth page
Here's where I'm stuck.
What else do I put in this .php file?
What I don't get is where/how I adjust the margins for this fullwidth page template I want to create.
In my source page.php file, the existing code is:
(Should I be coping a different .php file, not the "page" file?)
get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <?php get_footer(); ?>
Any help hugely appreciated. I'm on a very steep learning curve!