From fb3e86e6f19353aaca8dd951b0979cb807ddd125 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Thu, 22 Aug 2024 00:06:30 +0200 Subject: [PATCH] Load post-list styles in Elementor --- includes/functions/_setup-theme.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/functions/_setup-theme.php b/includes/functions/_setup-theme.php index 3c4f8364..6dd2c484 100644 --- a/includes/functions/_setup-theme.php +++ b/includes/functions/_setup-theme.php @@ -890,7 +890,10 @@ function fictioneer_style_queue() { } // Shortcodes - if ( preg_match( '/\[fictioneer_latest_[^\]]*type="list"[^\]]*\]/', $post->post_content ) ) { + if ( + preg_match( '/\[fictioneer_latest_[^\]]*type="list"[^\]]*\]/', $post->post_content ) || + is_admin() + ) { wp_enqueue_style( 'fictioneer-post-list', get_template_directory_uri() . '/css/post-list.css',