Theme images and absolute paths
-
I’ve searched high and low…
I made a custom WordPress theme for myself, hooray. I made a different version of that theme and I now have a mild issue.
On one of my pages, I use images to represent a rating of movies I’ve seen. I refer to those images that are in a directory above the themes directory, so my graphics are then not appropriate for the updated theme.
My question would be how to call from a directory releative to the current theme, from within a post. I’ve attempted variations of “../images/stars/3.gif” and even the “<?php bloginfo(‘stylesheet_directory’); ?>/images/stars…”. I want to be able to pull theme elements from within posts.
Maybe I’m just going about it wrong.
https://www.evilkirk.com (in light theme, movies page)
- The topic ‘Theme images and absolute paths’ is closed to new replies.