Browse Source

Nook: A round of minor fixes (#7626)

* Delete wp-custom-template-qi-blocks-full-width.html template

* Update functions.php

Update function names.

* Update style.css
alaczek 1 year ago
parent
commit
742c112201
2 changed files with 10 additions and 10 deletions
  1. 9 9
      nook/functions.php
  2. 1 1
      nook/style.css

+ 9 - 9
nook/functions.php

@@ -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.
@@ -20,20 +20,20 @@ if ( ! function_exists( 'creatio2_support' ) ) :
 	 *
 	 * @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.
@@ -42,21 +42,21 @@ if ( ! function_exists( 'creatio2_styles' ) ) :
 	 *
 	 * @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' );

+ 1 - 1
nook/style.css

@@ -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