Removes Roboto font enqueue from theme-side, enqueues only on admin.

This commit is contained in:
mateuswetah 2024-01-05 18:09:19 -03:00
parent 39a037d012
commit f4ae150261
1 changed files with 1 additions and 1 deletions

View File

@ -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 = [