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?
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- Why does wp_enqueue_style() in plugin not load stylesheet?
- Change Page’s Tag Using functions.php File
- Edit plugin without hooks in functions.php
- How can I log a user out of WordPress before the page loads?
- How can I reduce the amount of files loaded/included per plugin?
- Modify featured image URL at runtime
- Seeking clarification on page request life-cycle
- Change My Basket text in the header of WooCommerce Artificer theme
- Pass A Value From Outside To A Plugin Variable
- Built in admin ajax hooks?
- How to add inline css/js inside a shortcode
- How to find out what blocks are added by a plugin
- send_headers don’t work on wordpress multisite
- what the hook for displaying course list page for learndash plugin? [closed]
- How to add rewrite rules and pagination to retrieve attachments files?
- What are the benefit in adding hook in the init() hook?
- What are ideal hooks to call register_sidebars?
- AddFilter option_active_plugins is executed 6 times. Why?
- Deactivate Plugin on Theme Switch
- Where to hook my plugin’s action
- How to pull code snippet from functionality plugin?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- Can I use a plugin for a singular page on my website?
- Add custom message to the plugins page of WordPress
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Hooking in to replace the Sidebar/Widget areas
- How to get all of the activate_plugin action parameters?
- Headers Content-Security-Policy CSP Major Issue
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- How to insert HTML/JavaScript form into WordPress page? [closed]
- do_action() hook into load-(page)
- Howto check version of another plugin and then add a submenu page to it
- plugin shortcode output
- How to include this jQuery File in wordpress?
- My single.php page does not show the related data to the post which is clicked
- Enqueue stylesheet in plugin for wp-login.php
- Why do plugins often ask to add in to templates?
- How to get menu location in wp_update_nav_menu hook
- Turning on output buffering in a wordpress plugin
- How to use template_include hook with form submission?
- WooCommerce: after install hook
- How to manipulate the content within wp_head
- wp_trash_post hook – problem with page updating if using wp_die
- is it possible to hook every page style?
- Comment Approve – Add custom function when comment is approved
- Grab ID from post from plugin and use it to create an object
- Add action to custom Function
- Prevent plug-in scripts on a specific template?
- using wp_footer hook in a plugin
- how to convert XML from URL to HTML
- Apply a Meta tag to one page only
- How do I fill the Home Description?
- Plugin Hook When New Author Added
- WordPress Custom Hook with Class method
- Fail on admin_enqueue_scripts when I try it to upload a CSS file to my WordPress Plugin
- inserting custom css, html and js into the current page as a popup window
- update_option_{$option} not working (do function after options are saved)
- Alternative Hook to the_content for Changing Background Color
- Overriding inline !important CSS with Javscript code snippet with media query
- Unpublished Pages Failing To Appear On Custom Path
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- i create functions.php in plugin files but add_action (‘wp_head’, ‘function_name’) don’t work
- ACF Fields are not showing up on Homepage
- Include my files in a plugin? [duplicate]
- Hooking into the HTML header container
- Hide WordPress Site URL from Source Code
- Set up new WordPress domain using unclear files
- When/where would want to attach other classes to the base class in a WordPress plugin?
- how can I edit the HTML of yith ajax product filter
- Plugin function in child theme
- Edit plugin’s HTML output with Hooks
- How to echo a PHP Code After the Content
- WordPress custom blockquote with black background & white text?
- Debug in WP backend
- {status}_{post_type} does not run correctly?
- How to prevent encoding plugin HTML output to entities?
- Identify if the_post hook is being called from the admin post list
- Why is every single HTML tag being stripped out of liveblog entries?
- Form tries to download a file on submit
- Primary Menu doesn’t show because of w3 cache
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Passing a parameter to filter and action functions
- WordPress hook source
- How to `remove_action` from plugin
- Plugin Hook: Get posts
- Possible jquery / library conflict in plugin usage
- Transition Post status not working
- Change text “My Basket” in woocommerce artificer theme
- functions.php conditional output for a single plugin
- OOP Plugin: Where should I place the action hooks in the class?
- Neither update_option nor delete_option fires in deactivation hook
- How to create different woocommerce single_product.php pages for each product? [closed]