ThemeShaper Forums » Thematic


how to reference images in child theme html

(3 posts)
  • Started 11 years ago by fedude
  • Latest reply from fedude
  • This topic is resolved
  1. fedude

    I've developed a half-dozen wordpress websites but this is my first foray into thematic. It's tough to get your hands around the whole concept, but I'm fighting my way through it.

    But I'm stumped on something simple.

    I've added a header function and I reference an image in the html. But the image never shows up in the rendered page. I can reference the images fine from the CSS, but apparently not from the HTML I inserted in the header (which shows up fine in the source, it's just not finding the image).

    Here is my html:
    <div class="logo"><a>"><?php bloginfo('name'); ?><img src="<?php bloginfo('url'); ?>/images/layout/LCC_Logo.jpg" alt="course" border="0" /></a></div>

    Here is my CSS which accesses images fine:

    I'm determined to work my way through the learning curve. Thematic look pretty powerful if I can just get by a few stumbling blocks.

    Posted 11 years ago #
  2. Hi,

    your code should be:

    <div class="logo"><a>"><?php bloginfo('name'); ?><img src="<?php bloginfo('url'); ?>/wp-content/themes/yourchildtheme/images/layout/LCC_Logo.jpg" alt="course" border="0" /></a></div>

    Change yourchildtheme to the directory name of your child theme.


    Posted 11 years ago #
  3. fedude

    Thanks Chris. When I see it in print it makes sense. I'm embarrassed to say how long I spent on this....

    Working on my first child theme. I'm getting there. I just stumbled upon dwenaus's structure diagram. All I can say is WOW. This is like the Rosetta Stone. You should package this in the sample child theme you include with thematic.

    Now if I can only make some progress with the menu....

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.