themes-wordpress/payton/functions.php
alaczek 02a8c0b1cb
Payton: Initial commit. (#4863)
* Payton: Initial commit.

* change newtheme to payton

* add payton as a child of blockbase

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-10-19 11:13:02 +01:00

23 lines
500 B
PHP

<?php
/**
* Add Editor Styles
*/
function payton_editor_styles() {
// Enqueue editor styles.
add_editor_style(
array(
'/assets/theme.css',
)
);
}
add_action( 'after_setup_theme', 'payton_editor_styles' );
/**
*
* Enqueue scripts and styles.
*/
function payton_scripts() {
wp_enqueue_style( 'payton-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
}
add_action( 'wp_enqueue_scripts', 'payton_scripts' );