Exemplo n.º 1
0
<?php

/**
 * Template Name: No Sidebar
 *
 * @package Chroma_Theme
 */
get_header();
?>

<div id="page" class="no-sidebar <?php 
_the_field('content_column_width');
echo ' ';
_the_field('content_column_align');
?>
" >

	<?php 
get_template_part('template-parts/titles', 'page');
?>

	<div class="container">
		<div class="row">
		
			<main id="main" class="site-main" role="main">

				<?php 
while (have_posts()) {
    the_post();
    get_template_part('template-parts/content', 'page');
}
Exemplo n.º 2
0
<?php

/**
 * Page Title.
 *
 * @package Chroma_Theme
 */
if (_get_field('headline_display') != 'none') {
    ?>

<header class="page-header">
	<div class="container">
		<h1 class="page-title">
		<?php 
    if (_get_field('headline_display') == 'alternate') {
        _the_field('alternate_headline');
    } else {
        the_title();
    }
    if (_get_field('include_subhead')) {
        echo '<br><small>';
        _the_field('headline_subhead');
        echo '</small>';
    }
    ?>
		</h1>
	</div>
</header><!-- .page-header -->

<?php 
}