From 3621bed978409eb3b073c4bf87bffb0d40acab0a Mon Sep 17 00:00:00 2001 From: Christian Ohlsson Date: Tue, 7 Apr 2026 10:15:47 +0200 Subject: [PATCH] Fixade srilmall --- spotify-recent-oauth.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spotify-recent-oauth.php b/spotify-recent-oauth.php index 7b11816..b05397e 100644 --- a/spotify-recent-oauth.php +++ b/spotify-recent-oauth.php @@ -26,10 +26,16 @@ function sro_register_block() { 'editor_script' => 'sro-block-js', 'render_callback' => 'sro_render_block' )); - wp_register_style('sro-style',plugins_url('css/style.css',__FILE__)); } add_action('init', 'sro_register_block'); +function sro_enqueue_styles() { + wp_enqueue_style( + 'sro-style', + plugins_url('css/style.css', __FILE__) + ); +} +add_action('wp_enqueue_scripts', 'sro_enqueue_styles'); /* * Fetch recent track via Spotify API