How to put content in the middle area

  • The new SciELO ORG the content is always being shown in the middle of the site not using the secondary pages as it was in old portal.
  • In the middle we will have a content menu to easy display the content

First Solution

  • In the page.php, that respond from request ?page_id=XXX we insert the first column, the second column and the third column and use get_header() and get_footer() functions
    If the content is too large it is possible to be created by creating paging links.
    <?php get_header(); ?>
    
    <div id="container">
      <div id="content" role="main">
    
      <?php get_template_part( 'column', '1' );?>
    
      <?php
        if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
    
         <div id="secondary" class="widget-area" role="complementary">
           <ul class="xoxo">
             <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
           </ul>
    
         <!-- Middle -->
          <?php if ( is_active_sidebar( 'middle-widget-area' ) ) : ?>
    
          <div id="middle" class="widget-area" role="complementary">
            <ul class="xoxo">
             <?php dynamic_sidebar( 'middle-widget-area' ); ?>
            </ul>
    
             <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
              <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <?php if ( is_front_page() ) { ?>
                  <h2 class="entry-title"><?php the_title(); ?></h2>
                   <?php } else { ?>
                    <h1 class="entry-title"><?php the_title(); ?></h1>
                   <?php } ?>
    
                  <div class="entry-content">
                   <?php the_content(); ?>
                    </div><!-- .entry-content -->
                  </div><!-- #post-## -->
    
              <?php endwhile; ?>
    
            </div>
    
            <?php endif;?>
          </div>
    
        <?php endif;?>
    
      <?php get_template_part( 'column', '3' );?>
    
      </div><!-- #content -->
    </div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>