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