Skip to content

Commit

Permalink
Nook: A round of minor fixes (#7626)
Browse files Browse the repository at this point in the history
* Delete wp-custom-template-qi-blocks-full-width.html template

* Update functions.php

Update function names.

* Update style.css
  • Loading branch information
alaczek authored Jan 25, 2024
1 parent 2d84f47 commit 742c112
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions nook/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
declare( strict_types = 1 );


if ( ! function_exists( 'creatio2_support' ) ) :
if ( ! function_exists( 'nook_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress features.
Expand All @@ -20,20 +20,20 @@
*
* @return void
*/
function creatio2_support() {
function nook_support() {

// Enqueue editor styles.
add_editor_style( 'style.css' );

// Make theme available for translation.
load_theme_textdomain( 'creatio2' );
load_theme_textdomain( 'nook' );
}

endif;

add_action( 'after_setup_theme', 'creatio2_support' );
add_action( 'after_setup_theme', 'nook_support' );

if ( ! function_exists( 'creatio2_styles' ) ) :
if ( ! function_exists( 'nook_styles' ) ) :

/**
* Enqueue styles.
Expand All @@ -42,21 +42,21 @@ function creatio2_support() {
*
* @return void
*/
function creatio2_styles() {
function nook_styles() {

// Register theme stylesheet.
wp_register_style(
'creatio2-style',
'nook-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'creatio2-style' );
wp_enqueue_style( 'nook-style' );

}

endif;

add_action( 'wp_enqueue_scripts', 'creatio2_styles' );
add_action( 'wp_enqueue_scripts', 'nook_styles' );
2 changes: 1 addition & 1 deletion nook/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Author: Automattic
Author URI: https://automattic.com/
Description: Nook is a classic blogging theme offering a delightful canvas for your DIY projects, delicious recipes, and creative inspirations.
Requires at least: 6.0
Tested up to: 6.4.2-alpha-57098
Tested up to: 6.4.2
Requires PHP: 5.7
Version: 1.0.1
License: GNU General Public License v2 or later
Expand Down

0 comments on commit 742c112

Please sign in to comment.