Viewing 7 replies - 1 through 7 (of 7 total)
  • hrm.
    are you u sure the image is in the right location?
    your template file is pointing here:
    https://www.interkonect.com/websites/ElliesBears/wordpress/images/logoWithBear.jpg

    for the image, but it looks like you dont have the image in that folder/location

    Thread Starter krisleech

    (@krisleech)

    The SRC for the image is: images/logoWithBear.jpg and file exists.
    Does it need to be a absolute link?
    Yes that has to be it, the image path is relative to the template file (index.php in themes) but when the actual page is generated that relativity is no longer valid?
    The same goes for any static links in a template – they will not work.
    Is there a way around this without typing out the full URL to an image or web page?

    Cheers K.

    Thread Starter krisleech

    (@krisleech)

    OK further to the above i found the image links in the Kubrick theme, which uses: bloginfo(‘stylesheet_directory’);
    Easy just pop this in before the URL like this: <img name="logoWithBear" src="<?php bloginfo('stylesheet_directory'); ?>/images/logoWithBear.jpg" width="172" height="115" border="0" alt="Elliesbears - Handmade with love">

    And you get dynamic paths for your static links, K.

    Use the same method used in the default theme:

    src=”<?php bloginfo(‘stylesheet_directory’); ?>images/logoWithBear.jpg”

    so the refnce to images will be correctly referred to your image directory you have under your custom style.

    Could someone (or has someone) done a step-by-step image insertion routine? Example: 1) I am reading a blog; 2) it has a nice chart or photo I want to refer to in my blog; 3) I write a paragraph in my blog on the source and why I think it is interesting; and 4) I copy the chart/photo into my post for illustration. What are the steps I must take witin 1.5 Kubrick? Must it be a whole lot more complex than writing the paragraph and pasting the image into an email? If so, sign me “Spoiled Emailer” ??

    Thread Starter krisleech

    (@krisleech)

    I think your question is different, i would start a new post.
    I wanted to insert an image as part of the template/theme, you want to insert an image in to a web log post right?

    OMIGOD just to post a picture you have to go thru all of this? Sucks…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Images in template’ is closed to new replies.