Copy Blog-Post architecture

X-Theme Pro
I wonder if I can copy the complete architecture and functionality of the blog posts somehow (see picture). The background is that we have a big press area beside the standard blog-post area. We need the index/archiv and singlepost site as well in the same look but with different sidebars content. And wich templates or stack/view templates I have to change to get this? Is it possible to get an overview somewhere that describes wich part of “views”-templates are involved in another “views”- or “global”-template? The main thing is that we have different sidebars, different URL’s and different widths of sidebar/blog-post content. Or is it maybe even simpler to manage this what I don’t see yet? I hope my drawing is good enough to understand :wink: Thanks for help!

Hi Ronaldo304,

You need to setup a child theme first:

After that create these following files to your child theme directory:

  • x-child/archive-press.php
<?php

get_header();

?>

  <div class="x-container max width offset">
    <div class="<?php x_main_content_class(); ?>" role="main">

		  <?php x_get_view( 'global', '_script', 'isotope-index' ); ?>

		  <div id="x-iso-container" class="x-iso-container x-iso-container-posts cols-<?php echo $cols; ?>">

				<?php if ( have_posts() ) : ?>
					<?php while ( have_posts() ) : the_post(); ?>
					<?php if ( $stack != 'ethos' ) : ?>
					<?php x_get_view( $stack, 'content', get_post_format() ); ?>
					<?php else : ?>
					<?php x_ethos_entry_cover( 'main-content' ); ?>
					<?php endif; ?>
					<?php endwhile; ?>
					<?php else : ?>
					<?php x_get_view( 'global', '_content-none' ); ?>
				<?php endif; ?>

		  </div>

		<?php pagenavi(); ?>

    </div>

    <?php get_sidebar(); ?>

  </div>

<?php get_footer(); ?>

  • x-child/single-press.php
<?php

get_header();

?>

  <div class="x-container max width offset">
    <div class="<?php x_main_content_class(); ?>" role="main">

      <?php while ( have_posts() ) : the_post(); ?>
        <?php x_get_view( 'integrity', 'content', get_post_format() ); ?>
        <?php x_get_view( 'global', '_comments-template' ); ?>
      <?php endwhile; ?>

    </div>

     <?php get_sidebar(); ?>

  </div>

<?php get_footer(); ?>

Hope that helps and thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.