Your code seems to be fine, so I think the problem will rather be in your theme. Are you developing your own theme too? The wp_head function calls in those files, which were hooked to wp_enqueue_scripts. It should be in the theme between the head tags, similarly as you see here:
https://developer.wordpress.org/reference/functions/wp_head/#comment-900
Related Posts:
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- Where do I put the code snippets I found here or somewhere else on the web?
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- Loading external page template and enqueue script from plugin causes 403 forbidden error
- When can you get current page ID and initialize hooks right after?
- Customizing subject in comment notification e-mails
- enqueue script only if it is not already enqueue
- Common functionality between my own plugins
- Which method is best to enqueue scripts
- How to Loop Plugin Option Field Set?
- How to handel multiple checkbox field in the admin settings page with Settings API
- Why does including a file in theme’s functions.php not work?
- wp_insert_user – how to send verification email before logging in
- Editor access to plugin settings
- Saving Plugin settings to the database
- Shortcode display outside the div
- Execute a function using ajax
- Declaring script dependencies between scripts enqueued with different action hooks
- Pass $this to function nested in another public function of the same class
- Add Top-Level Menu that opens URL
- Dequeue / Deregister script and replace it with a new plugin
- Use functionality of 2 wordpress plugins
- What is the function to get plugin base url in multisite?
- Fatal error: Class not found in
- Custom data-id wp_enqueue_script
- Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges
- HELP: Integrating WP with raw PHP code once published button is hit
- wp_enqueue_scripts not working inside shortcode
- Override the core function locate_template
- wp_enqueue_script fails to include in footer
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Placement of Code in Plugin for hooking `save_post`
- Scope for PHP Variables Assigned in functions.php or a plugin
- The Point of Using apply_filters()
- How to get variables from fucntion.php to my plugin files
- How to include code into functions.php file via a plugin
- How to add class in plugin only for network site?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- plugin development: problem with functions
- React JSX in WordPress Plugin Development
- wordpress plugin is not activating from widget
- Edit Yoast SEO breadcrumbs output [closed]
- Making a plugin only available on the front-end for the logged in super admin
- Enqueue WordPress plugin scripts below all other JS
- Display post lists in 2nd paragraph
- Using a post-signup hook to get user details
- creating html reusable blocks via shortcodes
- jQuery for custom plugin not working with Divi theme
- Conditional attributes and logic per product category
- WordPress get_avatar function not correct working
- Which file of wordpress manage plugins functionalities?
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Difference and examples of esc_attr__() and esc_attr_e()
- Create shortcode to echo javascript
- Redirect to another page using contact form 7? [closed]
- List the authors that have written posts in a category
- Check if variable is set in filter
- execute function after one completed
- Why am I unable to load scripts in head in plugin?
- WordPress checkbox and Illegal string offset
- plugins_url() works everywhere but wp_reqister_script()
- wp_dequeue_script for a Plugin
- Shortcode Attributes to Return different $_POST
- Plugin onclick button activate other plugin
- strange shortcode error: does shortcodes requires any dependency?
- register_activation_hook doesn’t fire at all
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- WordPress Add advertising ads befor and after content with periority [closed]
- plugin not hooking to my custom hook
- Populate select option with JSON file
- Can plugin automatically update if i hide the update notification?
- Why isn’t my plugin seeing other classes?
- how to create table during plugin installation in side a class
- Hook into install email
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- WordPress plugin options need to delete after deactivate & uninstall
- Saving an array to get_options
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- How to Overwrite validate_plugin function
- How to add a handler for a button in plugin?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Custom Function for SEO by Yoast plugin
- Doing action based on input from options menu
- Call current post parameters inside a plugin
- How to list posts that appear in two categories
- Pass strings to plugin function [closed]
- How use Dynamic hyperlink on each wordpress post?
- Send email notification when meet the condition
- Create WordPress category dynamically
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Gravity Forms and Gravity View Permissions
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- Mixed results with is_page() WordPress function, when using $this, or self
- Read page- or post-content across different builder-plugins
- Frontend Enqueued Files in the Backend
- WooCommerce Checkout – Validate User Role
- How to get next day date of a specific day