You have to define the dependencies for either styles or scripts when you register them. Or, if you’re avoiding the registration completely, then it’s ok to stuff them into the queueing process. See more on the Codex page.
wp_register_style( 'reset', get_template_directory_uri().'/reset.css' );
wp_register_style( 'style', get_template_directory_uri().'/style.css', array( 'reset' ) );
wp_enqueue_style( 'style' );
Also avoid single ,
inside a function argument definition. This will not work. Better turn on Debugging stuff in your wp-config.php
.
Related Posts:
- Check if a script/style was enqueued/registered
- How to dequeue / deregister any theme styles and scripts
- Best spot for wp_register_script() and wp_register_style()
- Register script/style: Is it possible to customize the version query string via plugin?
- How to enqueue JavaScript file that depends on CSS stylesheet
- Why do WordPress adds the id=”handle-{js|css}” attribute to scripts and stylesheet?
- Where is the right place to register/enqueue scripts & styles
- Load js/css files only on specific admin UI pages
- Hyphens vs. periods in the script slug in wp_register_script?
- Using multiple versions of jQuery while still calling it like WP likes
- How to force that styles are enqueued in the header?
- Where is the right place to register/enqueue scripts & styles
- wp_enqueue_scripts does not work
- Enqueue Scripts / Styles when shortcode is present
- When should I use wp_register_script() with wp_enqueue_script() vs just wp_enqueue_script()?
- How do I dequeue a parent theme’s CSS file?
- wp enqueue style on specific page templates
- How can I get a list of all enqueued scripts and styles?
- Load CSS/Javascript in frontend conditionally if block is used
- Prevent Version URL Parameter (?ver=X.X.X) on Enqueued Styles & Scripts
- How can I de-register ALL styles all at once? And same with Javascript?
- Cannot deregister a script using wp_deregister_script
- Enqueue custom font file with rel=”preload”
- Removing specific style from wp_head
- Notice that the wp_enqueue_style is not being called correctly!
- Get the list of enqueued/registered scripts for a specific post?
- enqueue and localize script in footer
- Trying to load different syles for 404.php page
- What determines the order of enqueued styles?
- How to use wp_enqueue_style() and wp_enqueue_script() only when needed?
- Preload key requests using wp_enqueue
- How to Add a Custom Script to Customize.php
- Remove a script from a template file using wp_dequeue_script
- Remove specific CSS and JS from the head
- wp_enqueue_script vs. wp_register_script
- Child Theme – what is the scope of overwriting files?
- How to dequeue / deregister parent theme style
- Enqueued scripts and styles loading in WordPress Dashboard as well
- Add last modified time as version to css and js
- How can I load script and style in specific page in the back-end?
- Custom Plugin Development: What priority should wp_enqueue_scripts have?
- How to switch css files according to devices and button click?
- How to control the order of the combination of enqueued styles and scripts – site speed issue
- Help with enqueing scripts in footer after init action
- Asset loading with gulp.js or Grunt
- How to load script-related styles automatically?
- is_page() function doesnt working
- Optimizing WordPress’s styles and scripts
- Modernizr check first, then move on to wp_register_script()/wp_enqueue_script
- How to enqueue a style using wp_enqueue_scripts()?
- How to cancel `wp_print_scripts`?
- Deregister scripts on unnecessary pages using remove_action
- getting a js file for one page
- Enqueue Style for a page/pages only
- Why are files enqueued with wp_enqueue_style and wp_enqueue_script 404 Not Found?
- enqueue admin styling and scripts only on plugin page
- using conditionals on enqueue styles
- Can’t see why my scripts aren’t loading when I register and enqueue them
- Including files in Child Themes
- wp_enqueue_script Doesn’t Work?
- Exclude external uri for css and js version
- WordPress script file version numbers changing in live environment
- How to enqueu php files with custom variable & conditionals?
- Enqueue never runs
- Change script type and src of plugins in theme
- Adding multiple wp_register_scripts for templates in WordPres?
- Localizing script to pass a value to a javascript function
- How can I properly enqueue tags in WordPress to use with Web Components?
- Enqueuing script is adding extra text for google maps [closed]
- Load same stylesheet for front end and wp-admin
- Enqueueing Scripts and Styles
- Enqueuing a script before anything else
- How to remove all enqueued assets from the active theme?
- Should we explicitely enqueue jQuery and our theme’s main stylesheet?
- All of my Scripts and Enques are getting file not found
- If a Script has been enqueued but not registered can I still removed it?
- How to use wp_enqueue_script, style when required
- Enqueueing Scripts/Styles mid-page
- How to make my shortcode load scripts and styles, from within the plugin?
- Why is WordPress enqueuing admin relevant scripts (e.g., React, ReactDOM, Redux, hooks, TinyMCE etc) when not logged in?
- how to load css and js based on post template
- How to use wp_register_script / wp_enqueue_script for multiple queries
- I want to set global directory locations for my CSS and JS locations. How?
- How to register script with null value for version?
- javascript file is not enqueing
- Using wp_enqueue_script on scripts that contain PHP
- Check for Twitter Bootstrap Loaded
- is there a way to get all queued scripts/styles into a template without `get_header()`?
- WordPress wp_enqueue_style and wp_enqueue_script not working
- Stylesheets and scripts not loading
- Enqueue registered dependencies only when necessary
- Scripts and stylesheets failing to load in Chrome IOS (and only Chrome IOS)
- Enqueue script with version number not working
- How to enqueue a script on a specific URL that contains multiple parts
- i can’t handle any style or Js file on my theme . what is the problem of this file?
- How to get, in WP page’s script, a wp enqueued script (in Functions.php)?
- Should I be enqueueing styles/scripts once and then dequeueing them?
- Most optimal way of starting fresh, without using other theme or dropping old files?
- wp_enqueue_scripts hangs
- Dequeue/deregister scripts for everybody but the administrator