realign some stuff

This commit is contained in:
koenemann 2016-11-14 15:37:58 +01:00
parent c9787c436a
commit ebb8b9d5f5
2 changed files with 7 additions and 8 deletions

View File

@ -13,6 +13,10 @@
get_header();
$container = get_theme_mod('understrap_container_type');
$sidebar_pos = get_theme_mod('understrap_sidebar_position');
if ( is_front_page() && is_home() ) {
get_sidebar('hero');
@ -22,18 +26,13 @@
}
?>
<?php
$container = get_theme_mod('understrap_container_type');
$sidebar_pos = get_theme_mod('understrap_sidebar_position');
?>
<div class="wrapper" id="wrapper-index">
<div class="<?php echo $container?>" id="content">
<div class="row">
<!-- Do the left sidebar check -->
<!-- Do the left sidebar check and opens the primary div -->
<?php get_template_part( 'global-templates/left-sidebar-check', 'none' ); ?>
<main class="site-main" id="main" role="main">

View File

@ -18,7 +18,7 @@ $sidebar_pos = get_theme_mod('understrap_sidebar_position');
<div class="row">
<!-- Do the left sidebar check -->
<!-- Do the left sidebar check and opens the primary div -->
<?php get_template_part( 'global-templates/left-sidebar-check', 'none' ); ?>
<main class="site-main" id="main" role="main">
@ -55,7 +55,7 @@ $sidebar_pos = get_theme_mod('understrap_sidebar_position');
</main><!-- #main -->
</section><!-- #primary -->
</div><!-- #primary -->
<!-- Do the right sidebar check -->
<?php if ( 'right' === $sidebar_pos || 'both' === $sidebar_pos ): ?>