Note that cForms is hooking into wp_head
, and you’re attempting to hook into wp_enqueue_scripts
. The wp_enqueue_scripts
hook is fired inside the wp_head
hook (at priority 0
, IIRC).
So, your stylesheet is being enqueued at wp_head
, priority 0
, and the cForms stylesheet is being enqueued at wp_head
, priority 10
. Since it outputs later, it is taking precedence over yours.
The solution is to use the same wp_head
hook, with a lower priority (i.e. a number higher than 10
), for your stylesheet.
Related Posts:
- How to load scripts/styles specific for a page
- TinyMCE custom stylesheets for different post types
- Child Theme Not Overriding Parent Theme
- Register and enqueue style.css custom theme
- Enqueue Style Only On Certain Pages Not Working
- different style sheet for just one page template
- Split Media Queries in different files!
- Some questions about how proper add 2 CSS file in a WordPress theme?
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- get_template_directory_uri() links to child theme not parent
- Page Template Won’t Load Correct CSS File
- Advanced method to control cache of enqueued style/script
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- CSS style and app.js not loading
- Stylesheet does not load despite functions.php
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Child Theme not loading multiple stylesheets
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- wp_head not injecting css
- functions.php inject inline css
- How do I create a new WP admin color scheme?
- Logout/login redirect CSS issue
- Add attribute to link tag that’s generated through wp_register_style?
- is_front_page not working in functions.php
- Dequeue Scripts and Style for Mobile not working?
- How to add CSS style sheet dynamically in wordpress
- Simple/basic use of get_current_screen
- I created a child theme and it doesn’t work for some of the css files
- Is it possible to be more page/post specific with admin_enqueue_script?
- CSS stylesheet not loading
- Enqueue script o style only if a template part is loaded
- How to override enqueued styles using a child theme
- How to add background image control to page admin controls?
- Add class or ID to any WordPress function
- Multiple CSS body classes to specific page I.D.’s – is this possible?
- Enqueue scripts not working with if is page conditional tag in functions.php
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- functions.php How to add css/js depending on Template Name?
- Only let plugin add actions to wp_head & wp_footer on single posts
- How to Display Frontend CSS for Administrator only
- WordPress Menuing Question :focus
- change the url paths in the stylesheet dynamically
- Remove stylesheets from Campaign Monitor plugin
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- enqueue styles for only mobile wp
- Change CSS for logged in users
- Custom styles.css sheet for visual editor
- Is my code correct to enqueue CSS on a specific page?
- Not all CSS elements transferring via parent to child?
- Scripts not loading when using the wp_enqueue_scripts action
- problem loading stylesheets to wp_head dynamically
- How to insert class in each list of categories?
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Default Nav Highlight
- why can’t i add front.css to my frontpage.php
- How to pass variables from one function to another or combine functions
- Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme
- remove/hide wp-editor
- define css class in functions.php
- Completely Disable WordPress RSS Feeds
- Load CSS before Theme CSS
- Add custom css file after plugin css with WordPress Child Theme functions.php
- Combine page types and Custom Taxonomy in a functions.php command
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- Can’t load assets
- wp enqueue style on about us page
- Test CDN link from function.php or wp_enqueue_script/style?
- Can we have conditional CSS styling?
- Post content overflows on my mobile phone
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- How do I make a custom “Read More Blogs” button for my blog page
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- Setting Up Child Theme To Take Priority
- how to remove a tag in the_category function
- CSS disabled after getting rid of emoji
- How do I create a child theme from PowerMag theme
- How to add styles in existing function?
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js
- Correct way of Enqueue self hosted fonts in sass project
- Help with is_page() and calling css for specific pages in a Child Theme
- Child theme style.css didn’t work properly but the Customize Additional CSS did [closed]
- Why is style.css not loading through the functions.php
- How to automatically add custom classes to headings in content area
- custom post with loading script per single post
- Changing the color of post title [closed]
- Preventing PHP Execution in Parent Theme
- Random text changing to weird icons in both admin & front end
- Functions.php in child theme that loads CSS file breaks website
- Print all inline styles to head
- functions.php / replacing div’s with new ones?
- Image width issue in IE [closed]
- How do I make my child theme’s CSS update when I save it?
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- How to fix enqueue_styles error for a twenty-seventeen childtheme