Hello There,
Thanks for posting in! To get you started with your modifications, you will need to copy the wp-content/themes/x/framework/views/ethos/wp-single.php
file and place it in wp-content/themes/x-child/framework/views/ethos/wp-single.php
. You will be adding the fullwidth section on top, right before the container div.
<?php
// =============================================================================
// VIEWS/ETHOS/WP-SINGLE.PHP
// -----------------------------------------------------------------------------
// Single post output for Ethos.
// =============================================================================
$fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );
get_header();
?>
<div class="x-container custom-content">
<div class="x-column x-1-1">
<p class="mal">Add your fullwidth contents here</p>
</div>
</div>
<div class="x-container max width main">
<div class="offset cf">
<div class="<?php x_main_content_class(); ?>" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php x_get_view( 'ethos', 'content', get_post_format() ); ?>
<?php x_get_view( 'global', '_comments-template' ); ?>
<?php endwhile; ?>
</div>
<?php if ( $fullwidth != 'on' ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
Hope this helps. We would loved to know if this has work for you. Thank you.