Skip to content

Commit

Permalink
Events: Add child theme for root site.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Aug 22, 2023
1 parent de5c951 commit 9d6e85a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
21 changes: 21 additions & 0 deletions public_html/wp-content/themes/wporg-events-2023/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace WordPressdotorg\Events_2023;

defined( 'WPINC' ) || die();


add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_assets' );


/**
* Enqueue scripts and styles.
*/
function enqueue_assets() {
wp_enqueue_style(
'wporg-events-2023-style',
get_stylesheet_uri(),
array( 'wporg-parent-2021-style', 'wporg-global-fonts' ),
filemtime( __DIR__ . '/style.css' )
);
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public_html/wp-content/themes/wporg-events-2023/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Theme Name: Events.WordPress.org 2023
* Description: Includes templates for the homepage, event archives, etc.
* License: GNU General Public License v2 or later
* Text Domain: wporg
* Template: wporg-parent-2021
*/
5 changes: 5 additions & 0 deletions public_html/wp-content/themes/wporg-events-2023/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {}
}

0 comments on commit 9d6e85a

Please sign in to comment.