• Resolved goldieart

    (@goldieart)


    I’m following a tutorial on begining wordpress and php.
    I’m using:
    <p><img src="<?php bloginfo('template_directory'); ?>/images/training-wheels.jpg" width="426" height="142" alt="Training Wheels" /></p>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I tried get_bloginfo as well.
    the directory is set up like this:
    wp-content
    ….
    TrainingWheels
    images
    trainingwheels.jpg
    index.php
    style.css
    ….

    please help me!
    thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter goldieart

    (@goldieart)

    Thank you, I’ve been reading that.
    I changed it around,
    I tried:
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/training-wheels.jpg"...

    [And again… please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    instead, but it didn’t work.
    I placed the images in an images folder in the parent directory, they loaded properly. When I deleted the images folder from the parent directory it did not load (image folder is in the child theme).
    Curiously, the background image in the css of the child theme is loading.

    Thread Starter goldieart

    (@goldieart)

    Solved:
    it needed to be:

    <img src=”<?php echo get_stylesheet_directory_uri(); ?>

    [Moderator note: I give up!]

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘images fail to load’ is closed to new replies.