Full Page Layout Question
-
I have been editing this site purespoon.com but I was not the person who initially set it up in Word Press.
I am using Woocommerce for our site’s shopping cart. I am trying to get a particular page to display the content/products in full width on:
https://purespoon.com/shop/All pages by default had the left content then a right sidebar on every page. So in order to replace it what I have been doing is going into the web files, and cloning the existing template file and removing the side bar from the code. Then I’d rename that file and set it as the ‘Full Width Template’ in the page attributes. This has worked for every page except this shop page. I desperately need some help so any feedback is appreciated!
Full Width Shop Page Code example:
————————————————————————-<?php
/**
* Template Name: Shop Full Width
* Description: A Page Template for Shop Full Width
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0*/
get_header(); ?>
<div id=”primary” class=”content-area”>
<div id=”content” class=”site-content” role=”main”>
<div class=”container”>
<!–<div class=”left-area”>–>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”entry-header”>
<h1 class=”entry-title”>Shop
</h1>
</header><!– .entry-header –>
<div class=”entry-content”>
<?php the_content(); ?>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-links”><span class=”page-links-title”>’ . __( ‘Pages:’, ‘twentythirteen’ ) . ‘</span>’, ‘after’ => ‘</div>’, ‘link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’ ) ); ?>
</div><!– .entry-content –>
<footer class=”entry-meta”>
<?php edit_post_link( __( ‘Edit’, ‘twentythirteen’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
</footer><!– .entry-meta –>
</article>
<!– #post –>
<?php comments_template(); ?>
<?php endwhile; ?>
</div><!–.end left-area –>
<br class=”clear”/>
</div><!– end .container –>
<!– </div>–>
<!– #content –>
</div>
<!– #primary –>
<br class=”clear”/>
<?php get_footer(); ?>
- The topic ‘Full Page Layout Question’ is closed to new replies.