feat: create child theme with brandbook styles and fonts
GeneratePress child theme bitwms-child with full brandbook CSS (corporate pink #E50071, Suisse Int'l typography, utility classes), PHP bootstrap, and sidebar navigation JS placeholder ready for Task 3. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* БИТ.WMS Child Theme — inc/enqueue.php
|
||||
*
|
||||
* Registers and enqueues theme scripts.
|
||||
* Loaded by functions.php via the $bitwms_includes array.
|
||||
*
|
||||
* @package bitwms-child
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'bitwms_enqueue_scripts' );
|
||||
|
||||
function bitwms_enqueue_scripts() {
|
||||
$theme_version = wp_get_theme()->get( 'Version' );
|
||||
|
||||
// Sidebar navigation — loaded in footer (5th arg: true).
|
||||
wp_enqueue_script(
|
||||
'bitwms-sidebar-nav',
|
||||
get_stylesheet_directory_uri() . '/js/sidebar-nav.js',
|
||||
array(), // no dependencies
|
||||
$theme_version,
|
||||
true // load in footer
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user