I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
Driss, I tend to break up css and javascript that’s specific to a template into files specifically for that template – that way if it’s not needed on every page, I’m not loading it and thus that allows me to keep my main.js and style.css smaller. Here’s how I normally do it: if( is_page_template( ‘room.php’ … Read more