Enqeue files from Code Snippet
-
Hi Snippets
I have some code that enqeues external php and css files to load. I had it in a child theme, but since I then loose the theme design, I prefer to move back to TT5, add the enqeues in code snipppets and then enqeue external files. I am using:
require_once get_stylesheet_directory() . ‘/file-path/external-functions.php’;
This does not seem to load and I remember that this hook is specifically for a child theme?! Do you know which one to use?
But first of all, do you see any issues with such a construction?
Code Snippet – functions enqeue
External files – custom folder inside TT5 structureAny advice on this is most appreciated.
Thx
The topic ‘Enqeue files from Code Snippet’ is closed to new replies.