As in current example get_template_directory_uri()
is used:
Note that get_template_directory_uri()
/ get_template_directory()
returns the path to the parent theme if a child theme is used.
Better use get_stylesheet_directory_uri()
/ get_stylesheet_directory()
to always get the currently used theme.