From f4ae150261394b86c6c3ea6b8d849afd75b7af69 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Fri, 5 Jan 2024 18:09:19 -0300 Subject: [PATCH] Removes Roboto font enqueue from theme-side, enqueues only on admin. --- src/views/class-tainacan-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/class-tainacan-admin.php b/src/views/class-tainacan-admin.php index ea1c5478a..7cec74c0e 100644 --- a/src/views/class-tainacan-admin.php +++ b/src/views/class-tainacan-admin.php @@ -127,7 +127,6 @@ class Admin { global $TAINACAN_BASE_URL; wp_enqueue_style( 'tainacan-fonts', $TAINACAN_BASE_URL . '/assets/css/tainacanicons.css', [], TAINACAN_VERSION ); - wp_enqueue_style( 'roboto-fonts', 'https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i', [] ); wp_enqueue_script('underscore'); } @@ -202,6 +201,7 @@ class Admin { function add_admin_css() { global $TAINACAN_BASE_URL; + wp_enqueue_style( 'roboto-fonts', 'https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i', [] ); wp_enqueue_style( 'tainacan-admin-page', $TAINACAN_BASE_URL . '/assets/css/tainacan-admin.css', [], TAINACAN_VERSION ); // $undesired_wp_styles = [