themes-wordpress/geologist/functions.php
Ben Dwyer 0d4128bb68
Geologist: New Theme (#4472)
* Bedrock: New Theme

* Add Quadrat styles

* Rename theme to Geologist

* Update color palette.

* Adjust post title size.

* Tidy up single template.

* Tidy up page template.

* Adjust spacing

* Sync up spacing between index, page, and single templates.

* Create screenshot.png

* remove extra horizontal space on quadrat and geologist

Co-authored-by: Kjell Reigstad <kjell@kjellr.com>
2021-09-03 21:16:28 +01:00

25 lines
512 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' );