diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..c9e70ca --- /dev/null +++ b/css/style.css @@ -0,0 +1,3 @@ +.sro-block img { + width: 300px; +} diff --git a/spotify-recent-oauth.php b/spotify-recent-oauth.php index df80739..7b11816 100644 --- a/spotify-recent-oauth.php +++ b/spotify-recent-oauth.php @@ -26,6 +26,7 @@ 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'); @@ -97,7 +98,7 @@ function sro_render_block() { return "
- +
$artist – $track
Spelades för $mins minuter sedan