We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you enqueue files:
wp_enqueue_style( 'csf', self::include_plugin_url( 'assets/css/style'. $min .'.css' ), array(), self::$version, 'all' );
The method include_plugin_url retrieves the server path, not the URL.
include_plugin_url
This is what is being returned:
<script src='https://domain.example:/wp-content/themes/theme-name/mnt/aws-instance/deployments/100/plugins/interactive-geo-maps-premium/vendor/saltus/framework/lib/codestar-framework/assets/js/plugins.min.js?ver=2.2.4' id='csf-plugins-js'></script>
As you can see, the path is wrong, it gets fixed with:
wp_enqueue_script( 'csf-plugins', plugin_dir_url( __DIR__ ) . 'assets/js/plugins'. $min .'.js', array(), self::$version, true );`
You may want to look into this.
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When you enqueue files:
The method
include_plugin_url
retrieves the server path, not the URL.This is what is being returned:
As you can see, the path is wrong, it gets fixed with:
You may want to look into this.
Thanks.
The text was updated successfully, but these errors were encountered: