Results 1 to 9 of 9

Thread: add an image

  1. #1
    Join Date
    Oct 2008
    Posts
    48

    Default add an image

    Hello there. This is my website. www.greece2live.com. I want to add a map of greece on the welcome page. any idea how i can do that?

  2. #2
    Join Date
    Jun 2008
    Location
    Lithuanian capital :)
    Posts
    278

    Default Re: add an image

    Hi, it depends where do you want the image to be. Open your template's main.html , and you can add it here:
    <img src="xxx.jpg" width="100" height="100" alt="map">
    Or if you want map to be in the contents window you can add image via page editor

  3. #3
    Join Date
    Oct 2008
    Posts
    48

    Default Re: add an image

    it doesnt work for me. here is my code.

    <img src="images/map_of_greece.jpg" width="329" height="353" alt="map">

    it only displays a small box saying map

  4. #4
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    48
    Posts
    9,796

    Default Re: add an image

    Is the images folder located in your main directory?

  5. #5
    Join Date
    Oct 2008
    Posts
    48

    Default Re: add an image

    in my template folder

  6. #6
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    48
    Posts
    9,796

    Default Re: add an image

    It is not going to find it in your template folder. Even though main.html is located in the template folder, when it is loaded by OR, it is loaded at the root of the site so it is looking for the images folder in the main directory of the site. You need to add the full path to the image in your main.html file or move the images folder.

  7. #7
    Join Date
    Oct 2008
    Posts
    48

    Default Re: add an image

    what if i put the image into the main image folder

  8. #8
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    48
    Posts
    9,796

    Default Re: add an image

    That would work. Or just change main.html to show:

    <img src="{template_url}/images/map_of_greece.jpg" width="329" height="353" alt="map">

    The {template_url} will automatically be replaced with the url to your template folder.

  9. #9
    Join Date
    Oct 2008
    Posts
    48

    Default Re: add an image

    great i just moved the image into the main images folder. it works now. thanx for help. appreciated

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •