themes-wordpress/geologist/functions.php
Ben Dwyer e5ec33076b
Geologist: Add block patterns (#4623)
* 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
2021-09-22 11:20:13 +01:00

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';