• I’m trying to develop a theme from scratch for the first time.
    Running on a Mac w/ MAMP for developing on a local host.
    Not too comfortable w/ PHP or CSS, but following enough tutorials and training to get by (I think).

    So, If I target an image within the style sheet:
    #logo {
    position: relative;
    top: 12px;
    left: 0;
    background: url(images/ZA+D-HeaderLogo-blk.jpg) no-repeat;
    width: 193px;
    height: 73px;
    }
    The image loads fine…

    But, if I try to target an image with HTML on one of the .PHP pages:
    <div class=”featured-image”>
    <img src='<?php echo get_post_meta($post->ID,’featured_image’, true); ?>’ style=”width: 720px; height: 564px; float:right; padding: 36px 0 0 0;”>
    </div>

    It won’t load anything, just a broken link in the outlined, specified area.

    Any suggestions would be greatly appreciated! Thank you! Tommy

  • The topic ‘How to target images on local host?’ is closed to new replies.