Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Conversation

@ToddSmithSalter
Copy link

Just to eliminate confusion, move the calls to the stylesheets and scripts all to the functions.php file. This has the benefit of having all your loading taking place in one location for reference. Even better, with the all the loading taking place in functions.php, you can take advantage of WordPress' conditional functions for a rudimentary script loader.

Load all styles and scripts via functions.php by default. This encourages placing all future scripts loaded into the theme with the native WordPress methods, a best practice. Loading in functions.php also allows for use of conditional theme functions to use as a rudimentary script loader.
These should be loaded in functions.php.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant