• So I am totally stumped by this – I am editing a page that came with a theme that shows calendar items on a single page. The first thing I did was remove the getsidebar code to make it “full width”, now what I want to do if possible is center the content. Here is the page code:

    /*
    Template Name: Full-Width Page Template
    */
    <?php
    /**
    * The template for displaying the calendar page
    *
    */

    /**
    Template Name: Calendar
    */

    get_header(); ?>

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

    <div class=”lastmess”>
    <div class=”container”>
    <div class=”grid10 first”>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    </div>
    <div class=”grid2 dirr”>
    <span><?php echo get_option(‘nets_sptdir’)?></span>
    </div>
    </div>
    </div>
    <div class=”bodymid”>
    <div class=”stripetop”>
    <div class=”stripebot”>
    <div class=”container”>
    <div class=”mapdiv”></div>
    <div class=”clear”></div>
    <div id=”main”>
    <div class=”grid8 first”>
    <div id=”content” role=”main”>
    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <div class=”calmonth”>
    <div class=”monthselect”>
    “><?php _e( ‘PREV’, ‘wp_church’ ); ?>
    <span>|</span> “><?php _e( ‘NEXT’, ‘wp_church’ ); ?>

    </div>
    <?php if(isset($_GET[‘month’]) || isset($_GET[‘year’])){ ?>
    <h1><?php monthname($_GET[‘month’],$_GET[‘year’]); ?></h1>
    <?php } else { ?>
    <h1><?php monthname(”,”); ?></h1>
    <?php } ?>

    </div>
    <?php if(isset($_GET[‘month’]) || isset($_GET[‘year’])){ ?>
    <div class=”calentries”><?php get_the_calendar($_GET[‘month’],$_GET[‘year’]); ?></div>
    <?php } else { ?>
    <div class=”calentries”><?php get_the_calendar(date(‘n’),date(‘Y’)); ?></div>
    <?php } ?>

    <div class=”entry-content”>
    <?php the_content(); ?>

    </div><!– .entry-content –>
    </div><!– #post-## –>
    <?php endwhile; ?>
    </div>
    </div>

    <?php get_footer(); ?>

    Any ideas??

    Thanks!

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

    (@dinidh)

    Currently, everything is justified left, but I don’t see the code that would define that term!

Viewing 1 replies (of 1 total)
  • The topic ‘Editing page to center ALL content?’ is closed to new replies.