get( 'Version' ) ); // Child theme stylesheet — depends on parent. wp_enqueue_style( 'bitwms-child-style', get_stylesheet_uri(), array( 'generatepress-style' ), wp_get_theme()->get( 'Version' ) ); } // --------------------------------------------------------------------------- // 2. Load include files // --------------------------------------------------------------------------- $bitwms_includes = array( 'inc/enqueue.php', 'inc/cpt.php', 'inc/acf-fields.php', 'inc/ajax-filter.php', ); foreach ( $bitwms_includes as $bitwms_file ) { $bitwms_path = get_stylesheet_directory() . '/' . $bitwms_file; if ( file_exists( $bitwms_path ) ) { require_once $bitwms_path; } } unset( $bitwms_file, $bitwms_path ); // --------------------------------------------------------------------------- // 3. Inject sidebar navigation before the GeneratePress header // --------------------------------------------------------------------------- add_action( 'generate_before_header', function () { get_template_part( 'templates/sidebar-nav' ); } ); // --------------------------------------------------------------------------- // 4. Inject top header bar (priority 20 — after sidebar at default/10) // --------------------------------------------------------------------------- add_action( 'generate_before_header', function () { get_template_part( 'templates/top-header' ); }, 20 );