• I am not able to view any images on my blog, i have it pointing to the correct location. I do not understand what i could be doing wrong, can someone give me pointers as to what the reason could be.

    I am trying to create my own template and had quite a few problems some have been resolved but it’s giving me a right headache, as i know it is something simple but i do not know php.

    Link to test site: https://www.ukimmigration1.info/ukimmigration1/blog/

    The template folder has the images stored in ‘images’ directory and there is where i am referencing them from. Is that where they need to placed?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • always use absolute image paths inside the templates
    (the raltive image paths work only in stylesheets):

    for instance:

    <div class="logo"><a href="index.html"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.jpg" border="0" ......

    this:

    <?php bloginfo('stylesheet_directory'); ?>/images/logo.jpg

    generates the absolute image url, such as:

    https://www.ukimmigration1.info/ukimmigration1/blog/wp-content/themes/fixedconveyancing/images/logo.jpg

    look-up bloginfo() in the codex …

    Thread Starter missylondon

    (@missylondon)

    Thanks for quick response;

    I tried what you suggested but it made no difference, the images are stored in the ‘images’ directory and i’m not sure how referencing the stylesheet displays the image.

    I typed in the full url that also made no difference. I don’t understand why it’s not working.

    Thread Starter missylondon

    (@missylondon)

    Sorry for the incovenience, it’s sorted.

    Thank you very much for your time and help, really appreciate it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No Image showing’ is closed to new replies.