Stylesheets and scripts

Third party library scripts and styles

Third party library scripts and styles should not be prefix with the theme slug to prevent the assets being loaded multiple times. The handles should follow the same format as WordPress core which is

  • Words are separated by a dash (-)
  • It is all lowercase
  • Assets that are dependant on additional libraries should be prefixed with that library slug

jquery-fitvids, for example, is preferable to theme-slug-jquery-fitvids.

However, any custom scripts/styles that are specific to the theme, should still be prefixed.