Skip to content

Commit

Permalink
Merge pull request #5 from wordplate/feature-global-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla authored Oct 18, 2021
2 parents 250f23f + aafb4ca commit 858ffa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ All features are activated by default when the plugin is activated.
- Disables feeds
- Remove contributor, subscriber and author roles
- Remove Gutenberg's front-end block styles
- Remove Gutenberg's global styles
- Removes ?ver= query from styles and scripts
- Removes all extra RSS feed links
- Removes emojis
Expand Down
9 changes: 9 additions & 0 deletions headache.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ function headache_remove_block_styles(): void

add_action('wp_enqueue_scripts', 'headache_remove_block_styles');

// Remove Gutenberg's global styles.
// https://github.com/WordPress/gutenberg/pull/34334#issuecomment-911531705
function headache_remove_global_styles()
{
wp_dequeue_style('global-styles');
}

add_action('wp_enqueue_scripts', 'headache_remove_global_styles');

// Removes ?ver= query from styles and scripts.
function headache_remove_script_version(string $src): string
{
Expand Down

0 comments on commit 858ffa3

Please sign in to comment.