<main>
<div class="row" data-equalizer>
<?php get_sidebar(); ?>
- <?php if (is_page("Courts & Sheriff")) { ?>
+ <?php if (get_the_block( $name, $args ) != "") { ?>
<div id="content-bulk" class="small-12 large-6 columns" data-equalizer-watch>
<?php } else { ?>
<div id="content-bulk" class="small-12 large-9 columns" data-equalizer-watch>
</div>
</footer>
</div>
- <?php if (is_page('Courts & Sheriff')) {
+ <?php if (get_the_block( $name, $args ) != "") {
get_template_part('parts/right-sidebar');
} ?>
</div>
<div id="extra" class="large-3 columns show-for-large-up">
<?php
echo get_the_block( $name, array(
- 'label' => __( 'Admin label', 'text-domain' ),
+ 'label' => __( '<h2>Enter your Sidebar content here. Leave this blank '
+ . 'to remove the sidebar area once more<h2>', 'text-domain' ),
'type' => 'editor',
'apply_filters' => true,
) );