Skip to content

Commit

Permalink
Merge pull request #270 from studiopress/fix/hard-coded-theme-name
Browse files Browse the repository at this point in the history
Use theme name instead of hard-coding 'genesis-sample' for handles
  • Loading branch information
dreamwhisper authored Jun 24, 2019
2 parents 12e8e0f + 4f3f4d7 commit 119d5ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/gutenberg/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
function genesis_sample_enqueue_gutenberg_frontend_styles() {

wp_enqueue_style(
'genesis-sample-gutenberg',
genesis_get_theme_handle() . '-gutenberg',
get_stylesheet_directory_uri() . '/lib/gutenberg/front-end.css',
array( genesis_get_theme_handle() ),
genesis_get_theme_version()
Expand All @@ -36,7 +36,7 @@ function genesis_sample_block_editor_styles() {
$appearance = genesis_get_config( 'appearance' );

wp_enqueue_style(
'genesis-sample-gutenberg-fonts',
genesis_get_theme_handle() . '-gutenberg-fonts',
$appearance['fonts-url'],
array(),
genesis_get_theme_version()
Expand Down
2 changes: 1 addition & 1 deletion lib/gutenberg/inline-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function genesis_sample_custom_gutenberg_admin_css() {
}
CSS;

wp_add_inline_style( 'genesis-sample-gutenberg-fonts', $css );
wp_add_inline_style( genesis_get_theme_handle() . '-gutenberg-fonts', $css );

}

Expand Down

0 comments on commit 119d5ad

Please sign in to comment.