modifying priority for child theme stylesheets
-
Topic
-
I have a css file that I want to enqueue after the child theme
style.css
. In the framework documentation you show how to add a file between the framework style.css and child theme style.css by using a priority between greater than 5 and less than 10.My goal is to get this new stylesheet referenced after the child theme style.css file. I am using
10
as the$deps
parameter when enqueueing the file.add_action('wp_enqueue_scripts', 'child_theme_skins', 10);
Even thought I am calling it with a priority of 10, it is still getting called before the child theme
style.css
file. In that same article you say “style.css is hooked in a function with standard priority 10.” Since they have the same priority, I can’t seem to get my new file to be called after it. Can I change the priority of your function to enqueye style.css at 9 instead?Maybe there is a better approach. What would you recommend?
- You must be logged in to reply to this topic.