Load Custom Template CSS first
-
Hi there,
I have created a custom template, loaded it in settings and all is working fine, however the CSS for the custom template loads after the default template css. In other words for a second the template loads with the default style then renders with my style.
In my customer template I call the stylesheet like this:
/** load the template specific css */ wp_enqueue_style( 'diesel-petrol-style', plugin_dir_url( __FILE__ ) . '/diesel-petrol-style.css' );
How can I load my custom template CSS with a higher priority?
Thank
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Load Custom Template CSS first’ is closed to new replies.