WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] A string is being added to my image files for single.php (3 posts)

  1. bellemode
    Member
    Posted 2 years ago #

    Created my single.php file and for some reason a string is placed in front of my image paths.

    example: the path to the logo should be "images/melanie-lora-logo.png"

    but it's: "/2012/08/images/melanie-lora-logo.png"

    I even went back to my index.php file that I originally created for my homepage before I customized it and put that in and I get the same issue.

    Homepage

    This is where the error happens Single Blog Post

    I've looked at the codex at functions and I'm still not sure why it's happening.

  2. bellemode
    Member
    Posted 2 years ago #

    I put php in the header and footer to get my images instead of paths and that fixed it.

    <img src="<?php echo bloginfo('template_url'); ?>/images/your-image.png" alt="" />

  3. bellemode
    Member
    Posted 2 years ago #

    fixed.

Topic Closed

This topic has been closed to new replies.

About this Topic