I'm working with a WordPress 4.0 install, using Omega (the ThemeHall version; there are multiple Omega themes out there).
Most of the instructions I've seen to control whether the sidebar appears or not tell me to work with the get_sidebar
tag.
This theme lets me turn the sidebar on everywhere or nowhere, so I've opted to turn it on universally so I can find, and remove, get_sidebar from page templates.
But when I look at all the .php files in the main theme folder, get_sidebar doesn't appear. Anywhere. Not in page.php, index.php, footer.php, etc. etc. etc.
This is where my WordPress-understanding-powers come to a screeching halt. If get_sidebar isn't in the page templates, where is it?
This is a typical page structure in the theme; this is page.php:
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Omega
*/
get_header(); ?>
<main class="<?php echo omega_apply_atomic( 'main_class', 'content' );?>" <?php omega_attr( 'content' ); ?>>
<?php
do_action( 'omega_before_content' );
do_action( 'omega_content' );
do_action( 'omega_after_content' );
?>
</main><!-- .content -->
<?php get_footer(); ?>
In the absence of get_sidebar (and with sidebars turned on everywhere, I thought get_sidebar would appear somewhere in these templates), what's the best way of controlling which templates get sidebars and which don't?