diff --git a/includes/init/assets.php b/includes/init/assets.php index 8cef4aa..f9cef29 100644 --- a/includes/init/assets.php +++ b/includes/init/assets.php @@ -422,7 +422,7 @@ public static function prepare( $assets = array(), $plugin_name = null ) { } $base_path = WP_PLUGIN_DIR . "/{$plugin_name}"; - $base_url = WP_PLUGIN_URL . "/{$plugin_name}"; + $base_url = plugin_dir_url("/wr-megamenu/{$plugin_name}"); // Prepare assets path foreach ( $assets AS $key => $value ) {