themes-wordpress/masu/functions.php
Takashi Irie 9af2ab060a
Masu: Initial Commit (#6664)
* Masu: Initial commit

* Remove a ref from navigation

* Masu: Changed colour names

* Masu: Change colour name

* Masu: Fancy comments

* Masu: Remove ref from navigation

* More changes

* Masu: Fix a typo

* Masu: Add a pattern for comments

* Masu: Move post meta so that they are visually aligned with post title

* Masu: Constrained post navigation width

* Masu: Reduce spacing above post navigation

* Masu: Remove unnecessary __unstableLocation from navigation.

* Masu: Change colour name to the current standard

* Masu: Adjust spacing between social icons in footer

* Masu: Remove the default background colour from submenu

* Masu: Add background colour to submenu
2022-10-11 16:39:13 +01:00

59 lines
1 KiB
PHP

<?php
/**
* Masu functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Masu
* @since Masu 1.0
*/
if ( ! function_exists( 'masu_support' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Masu 1.0
*
* @return void
*/
function masu_support() {
// Add support for block styles.
add_theme_support( 'wp-block-styles' );
// Enqueue editor styles.
add_editor_style( 'style.css' );
}
endif;
add_action( 'after_setup_theme', 'masu_support' );
if ( ! function_exists( 'masu_styles' ) ) :
/**
* Enqueue styles.
*
* @since Masu 1.0
*
* @return void
*/
function masu_styles() {
// Register theme stylesheet.
wp_register_style(
'masu-style',
get_template_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);
// Enqueue theme stylesheet.
wp_enqueue_style( 'masu-style' );
}
endif;
add_action( 'wp_enqueue_scripts', 'masu_styles' );