You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks good to me. I've never seen that global $wp_styles used for conditionals, neat!
I'd use get_stylesheet_directory() instead of CHILD_URL. WP core recommends using functions rather than globals, and are deprecating them in core I think (couldn't find the ticket). I know these are Genesis global variables, but it's good practice to not use them.
It's a good idea to prefix the javascript and stylesheet slug (ea-global rather than global).
I'd leave the Javascript there, also creating a file in /inc/js/global.js. But I'd have the stylesheet part commented out.
Not sure about yall, but on almost every site I do I have at least 1 js file that needs to be enqueued, usually globally.
Should we set something for default as a reference.
This is what I had in my old base theme:
The text was updated successfully, but these errors were encountered: