
* Geologist: Add block patterns * Add pattern files * Update styles for block patterns * Update content for block patterns * fix quote markup * adding textdomain * add paragraph block comments * add image to repo
28 lines
602 B
PHP
28 lines
602 B
PHP
<?php
|
|
|
|
/**
|
|
* Add Editor Styles
|
|
*/
|
|
function newtheme_editor_styles() {
|
|
// Enqueue editor styles.
|
|
add_editor_style(
|
|
array(
|
|
'/assets/theme.css',
|
|
)
|
|
);
|
|
}
|
|
add_action( 'after_setup_theme', 'newtheme_editor_styles' );
|
|
|
|
/**
|
|
*
|
|
* Enqueue scripts and styles.
|
|
*/
|
|
function newtheme_scripts() {
|
|
wp_enqueue_style( 'newtheme-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
|
|
}
|
|
add_action( 'wp_enqueue_scripts', 'newtheme_scripts' );
|
|
|
|
/**
|
|
* Block Patterns.
|
|
*/
|
|
require get_stylesheet_directory() . '/inc/block-patterns.php';
|