Problem enqueuing scripts on not single posts
With a couple minor modifications, I was able to run your function with your desired outcome (sitewide except on single post/cpt pages & in admin area). The current preferred method of returning the stylesheet uri is with the get_stylesheet_directory_uri(), not by using get_bloginfo(‘stylesheet_directory’): From the WordPress Codex Function Reference page: ‘stylesheet_directory’ – Returns the stylesheet … Read more