[Resolved] Outputting stylesheet uri in a function
For a theme specific function I need to create a path to the stylesheet directory.
The Codex Page suggests that
echo '<img src="' . get_settings('stylesheet_directory') . '';will work but as far as I can tell, of the ‘will work with 1.5+’ options, only ‘html_type’ generates anything.
At the moment I am using this within my function:
echo '<img src="' . get_settings('siteurl') . '/pathto/stylesheet/directory>';which is not going to be good if the theme folder is renamed.
Any help/ suggestions would be appreciated, this is my first foray into coding and I am out of ideas.
- The topic ‘[Resolved] Outputting stylesheet uri in a function’ is closed to new replies.