I finally done like this:
$form_styles_header = [
"1" => "forms/vendor/bootstrap/css/bootstrap.min.css",
"2" => "forms/fonts/font-awesome-4.7.0/css/font-awesome.min.css",
"3" => "forms/vendor/animate/animate.css",
"4" => "forms/vendor/css-hamburgers/hamburgers.min.css",
"5" => "forms/vendor/animsition/css/animsition.min.css",
"6" => "forms/vendor/select2/select2.min.css",
"7" => "forms/vendor/daterangepicker/daterangepicker.css",
"8" => "forms/css/util.css",
"9" => "forms/css/main.css",
"10" => "table/css/table-styles.css"
];
foreach ($form_styles_header as $no=>$form_style) {
wp_enqueue_style('du_form_style'.$no, $d_utility_url."/assets/".$form_style);
}
where $d_utility_url is the path to my plugin.
This is working properly and the issue has been fixed.
Related Posts:
- How do I force wp_enqueue_scripts to load at the END of ?
- Add code into on a per page/post basis
- adding meta data using plugin to top of head
- Hook for plugin to insert into entry-meta
- How to make a slider hearder?
- How to change the width of certain paragraph or header blocks?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Show an image in my header.php
- Hooking in to replace the Sidebar/Widget areas
- How to get all of the activate_plugin action parameters?
- Modifying the comments section through a plugin regardless of theme
- Headers Content-Security-Policy CSP Major Issue
- How to debug error message: Cannot modify header information
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Using a post-signup hook to get user details
- Map a custom id to wordpress post id
- Creating custom HTML pages
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Trigger Elementor Popup via code [closed]
- wp_get_post_terms is difference obj model than the one in rest api response
- Calling plugin function inside custom plugin for onclick event
- get current date + 90 days and checking every day
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Get Time Taken By Each Action Hook in WordPress
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Filtering WooCommerce Orders by Category
- Best place for short bio,image and button [closed]
- how to access all user dashboard on fronted page [closed]
- How can i get the post’s full html source by its ID?
- Blog titles from WP blog on plain html site?
- Frontent user submit and view content [closed]
- html generated by theme exist but doesnt appear in browser
- How to insert HTML/JavaScript form into WordPress page? [closed]
- do_action() hook into load-(page)
- wp_footer hook only working on homepage not in other pages
- Howto check version of another plugin and then add a submenu page to it
- password_reset hook is not working
- The Hook registration_errors was not called
- WordPress putting “rn” in every line break?
- plugin shortcode output
- Hook into existing tinyMCE button
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Object method calling for global $wpdb in header.php
- How to get post ID with hooks publish_post, new_to_publish, etc
- What does making sure “that your theme is WordPress header and footer tag enabled” mean?
- Know which plugin is calling JS in wp_head()?
- edit_user_profile and show_user_profile are not firing inside a class
- Template filter for custom taxonomy terms
- How to include this jQuery File in wordpress?
- My single.php page does not show the related data to the post which is clicked
- Add sub menu page in your plugin
- Enqueue stylesheet in plugin for wp-login.php
- how to change automatic placing of social plugins below content?
- What exactly happens to function argument availability when using a filter?
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- Combining several CSS files into one for optimization
- the_post hook is not firing for me
- Why do plugins often ask to add in to templates?
- Deactivate JS Script in Plugin Shortcode
- Create a post builder skin in a plugin
- remove_action not removing add_action from constructor
- Plugin Development – Functions or Hooks?
- How to get menu location in wp_update_nav_menu hook
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Can my hooked uninstall class function access a global var declared in main plugin file?
- Flipping Book PHP Code? Any experience?
- How can I exclude a dynamic URL to show a popup created using ‘WordPress Popup’ plugin
- Turning on output buffering in a wordpress plugin
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- how to insert a HTML form into a javascript popup?
- Hook for page Request?
- Custom Login Page — wp_signon Headers Already Sent?
- Display Plugin Panels Outside of Admin Areas
- Are there action hooks for comments?
- How to remove js ui library added by default by wordpress
- How to use template_include hook with form submission?
- Add item to the woocommerce dashboard menu from a plugin
- Images under 1MB are not being compressed
- Any idea how to get something like this to work? [closed]
- WordPress Plugin Insert Html Code with Shortcode
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- How to use the pre_option filter before a plugin loads?
- What are admin hooks
- “uagb/section and uagb/columns block”
- How do I add $_SESSION[”] to my wordpress page?
- Readable titles in mobile
- Is there a way to convert shortcodes to html content?
- the_content() printing DOCTYPE, and tags in the middle of page
- WooCommerce: after install hook
- echo get_option in header template
- wp_enqueue_style on template_redirect level?
- How to use filter to disable adding a product to wishlist?
- Save user total active time after login in wordpress [closed]
- WordPress: Add custom add_filter for custom functions
- How to manipulate the content within wp_head
- How to remove a class function from a plugin by using remove_action()?
- adding Adsense’s In-Article Ads between images of blog post
- Advanced WordPress plugin activation detection
- profile_update hook doesn’t works inside a class