adding template_directory to style.css for images
-
I’m making my own first theme. In my style.css file I point to my images in subfolder assets/images.
My instructions say to add <?php bloginfo(‘template_directory’) ?>/ to my style.css code in front of the image path, but when I do the images don’t appear on the template. Example: background: #a45628 url(<?php bloginfo(‘template_directory’) ?>/assets/images/bodyBack.jpg) center top repeat;
If I drop the template_directory code the images do appear so I know I have that part of the path correct. Example: background: #a45628 url(assets/images/bodyBack.jpg) center top repeat;
What am I doing wrong? Will I not be able to point to images in my style.css file?
The topic ‘adding template_directory to style.css for images’ is closed to new replies.