Friday, May 18th

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Adding Image on local host issue
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Adding Image on local host issue

Adding Image on local host issue 1 year, 4 months ago #3449

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 119
  • Karma: 1
OK, got the local host working and looks good. Problem is that I am trying to add an image but it does not show in an article. I have edited the banner image via the css and it works fine. I have the image in the image folder but when I try to link the image to: ../images/header1.jpg it does not show. Anything I am doing wrong? Cannot seem to find anything on the web...

Will push ahead with the text for the time being.

Cheers,

John

PS - when it comes time to move the site from my PC to the live server, are there any little trick I should know?
Last Edit: 1 year, 4 months ago by JohnL.

Re: Adding Image on local host issue 1 year, 4 months ago #3450

re image - did you put the image in yoursite/images/ or yoursite/templates/templateyouareusing/images

use akeeba and quickstart to move final site perhaps - I like this!
www.akeebabackup.com/
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re: Adding Image on local host issue 1 year, 4 months ago #3451

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 119
  • Karma: 1
The whole path is: C:\wamp\www\joomla\templates\templatename\images

Re: Adding Image on local host issue 1 year, 4 months ago #3452

CAN you see the image if you go to this url;
yorusite/templates/templatename/images/header1.jpg?

if so try:
src="/templates/yorutemplate/images/header1.jpg"
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com
Last Edit: 1 year, 4 months ago by JustLoveJoomla. Reason: not finished

Re: Adding Image on local host issue 1 year, 4 months ago #3453

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 119
  • Karma: 1
Sorry, not sure what you mean by "yoursite" as it on my PC. If I put in the following in the article: <img src="../templates/templatename/images/shirt.jpg" />

Nothing shows up. Same as before.

JL

Re: Adding Image on local host issue 1 year, 4 months ago #3454

what URL are you using to view your local site in the address bar? - that is what I mean by yoursite
anyway - please try (perhaps copy and paste to be sure ) <img src="/templates/templatename/images/shirt.jpg" />

BUT are you trying to link to an image in an article not in the template - I'm sorry it's really not clear to me exactly what you are doing now - is shirt the same as header or is this a different problem?

WHERE exactly are you putting this code in an article or in the template? maybe try this if not in template (??) (perhaps copy and paste to be sure ) <img src="/images/shirt.jpg" />
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re:Adding Image on local host issue 1 year, 4 months ago #3455

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 119
  • Karma: 1
OK, sorry to confuse and thanks for your patience...

I have installed joomla on my PC. I have added a template and am editing it. I changed the header from the original and the image for that header resides in: C:\wamp\www\joomla\templates\templatename\images and it shows fine - as in the header displays as it should.

Now I am trying update an article and am trying to place an image in that article. That is where the problem is - editing the article. The article does not show the image, only a broken link. I have deleted and readded joomla just to make sure but still no joy.

The url is: localhost/joomla/administrator/index.php
Last Edit: 1 year, 4 months ago by JohnL.

Re:Adding Image on local host issue 1 year, 4 months ago #3456

so was your first problem the header image? has that been fixed? what fixed it?
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re:Adding Image on local host issue 1 year, 4 months ago #3457

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 119
  • Karma: 1
Sorry JLJ, the header was never the problem I got that to work straight away. It is the image in the article that I am having issues with.

Edit: images appear OK if I use the path

images/stories/fruit/strawberry.jpg
Last Edit: 1 year, 4 months ago by JohnL.

Re:Adding Image on local host issue 1 year, 4 months ago #3458

ok I suggest you install jce editor that will help you find / upload your images correctly
www.joomlacontenteditor.net/
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re:Adding Image on local host issue 1 year, 4 months ago #3459

  • JohnL
  • OFFLINE
  • Expert Boarder
  • Posts: 119
  • Karma: 1
I have that installed. I will just add all the images to where it seems to work. Thanks for your help. Have a good weekend.
  • Page:
  • 1
Time to create page: 0.59 seconds
You are here: Forum