Skip to content

Commit

Permalink
fixed missing action to load styles from merging from main
Browse files Browse the repository at this point in the history
  • Loading branch information
geckod22 committed Feb 25, 2025
1 parent 5bb587a commit f4952d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions includes/Performance.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public function __construct( Container $container ) {
new RestAPI();
}

add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );

add_filter( 'newfold-runtime', array( $this, 'add_to_runtime' ), 100 );

! defined( 'NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR' ) && define( 'NFD_PERFORMANCE_PLUGIN_LANGUAGES_DIR', dirname( $container->plugin()->file ) . '/vendor/newfold-labs/wp-module-performance/languages' );
Expand Down Expand Up @@ -308,9 +310,9 @@ public function add_sub_menu_page() {
);
}
/**
* Enqueue scripts and styles in admin
* Enqueue styles and styles in admin
*/
public function enqueue_scripts() {
public function enqueue_styles() {
$brand = $this->container->plugin()->brand;
if ( is_settings_page( $brand ) ) {
$plugin_url = $this->container->plugin()->url . get_styles_path();
Expand Down
1 change: 0 additions & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
position: absolute;
}


.nfd-performance-jetpack-boost-container-install-activate-button{
position: absolute;
width: 300px;
Expand Down

0 comments on commit f4952d9

Please sign in to comment.