If this is your first visit, check our documentation. To post, register or login.

Where to place picture files?

Locked

Started by jasonhoward64 on 31 Oct 2009, 7:47 PM · Views: 960

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 Oct 2009, 7:47 PM
#1
jasonhoward64 avatar

jasonhoward64

New Zenner

Join Date:
Jun 2009
Location:
Saskatchewan, CDN
Posts:
68
Plugin Contributions:
0

Where to place picture files?

Hi everyone,

I'm extremely new to zen cart, but I'm learning more and more each day. I've read the official zen cart manual and looked in the FAQs section and can't seem to figure something out.

I've inserted a bunch of html code in includes\languages\english\html_includes\classic\define_main_page.php. My pictures are not showing up on the main page though. They appear as broken links.

An example of some of the code in my define_main_page.php file is <img src="top.jpg">. Can I place top.jpg in a particular folder so that my picture shows up or do I have to change all image sources so that they look images/top.jpg for example?

Thanks for the help!

31 Oct 2009, 7:51 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Where to place picture files?

To do that would mean you'd have to put your images in your main zen cart folder ... which means you'll end up cluttering that folder needlessly.
It would be better to put them into the /images/ folder or your /includes/templates/YOUR_TEMPLATE_NAME/images folder, and update your IMG tags accordingly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Oct 2009, 8:08 PM
#3
jasonhoward64 avatar

jasonhoward64

New Zenner

Join Date:
Jun 2009
Location:
Saskatchewan, CDN
Posts:
68
Plugin Contributions:
0

Re: Where to place picture files?

Awesome, thanks for the help! You're a god!!!