Skip to content

Commit

Permalink
Enqueue bootstrap only on trackmage settings pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Evghenii Garbuzneac authored and karser committed Mar 20, 2023
1 parent 822ee73 commit dd41a82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Admin/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public static function enqueueStyles() {
}

// Enqueue admin styles.
wp_enqueue_style('trackmage-bootstrap');
if(str_contains($screenId, 'trackmage')) {
wp_enqueue_style('trackmage-bootstrap');
}
wp_enqueue_style('trackmage_admin');
}

Expand Down

0 comments on commit dd41a82

Please sign in to comment.