-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Events: Add child theme for root site.
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
public_html/wp-content/themes/wporg-events-2023/functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} |