bloginfo($option)
echos out a value whereas get_template_directory_uri()
returns a string – did you maybe forget to echo get_template_directory_uri()
? Also are you passing a string with quotes i.e. bloginfo(template_url)
vs bloginfo('template_url')
?
Both bloginfo('template_url')
and get_template_directory_uri()
should work, they aren’t deprecated.