Correct use of wp_enqueue
-
Hi
I use a plugin called EventON (and I have been in extensive touch with their devs on how to do this), and I have made a custom stylesheet because I don’t like their styling. In my functions.php file, I have dequeued the plugin styles (3 of them) and enqueued a new stylesheet in my Child Theme’s directory. According the plugin devs, my dequeueing is fine.
I enqueue my custom stylesheet thus:
function enqueue_custom_styles() { wp_enqueue_style('eventon-custom-styles', get_template_directory_uri() . "/eventON_custom.css" . ' ', array(), '', 'all'); } add_action( 'wp_enqueue_style', 'enqueue_custom_styles' );
Should I perhaps add something that forces it to load after the other styles queued in my functions.php?
Thanks in advance!
SwissPPS You can see that the page has not loaded at all. It was loading perfectly perfectly before these queuing changes.
- This topic was modified 4 years, 10 months ago by .
- This topic was modified 4 years, 10 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Correct use of wp_enqueue’ is closed to new replies.