Zen Cart Logo
Forums / Basic Configuration / Can't get background image on entry page to display

Can't get background image on entry page to display

Locked

Views: 1,971

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
27 Feb 2010, 2:42 AM
#1
jayequeue avatar

jayequeue

New Zenner

Join Date:
Feb 2010
Location:
Florida
Posts:
20
Plugin Contributions:
0

Can't get background image on entry page to display

Argh, please help :unsure:

I'm having a heck of a time trying to get my background image to show on my entry page. I'm slowly learning this (css) having been working with the site for a week or so now but now I'm stumped. I'm somewhat familiar with html but not so much with css...

Anyway, the products I'll be selling on my site are such that customers need to be over 18 to purchase them. Due to that I'd like to have an "18 or older" type entry page. I've managed to get the page up & working (including the links to the secure site) but I can't for the life of me get my background image to work on it & right now it just looks cheesy!

What I'd like to do is have my background image as well as a white main content area if possible.

Can anyone help?

Thanks soooo much!
~ Jayequeue

Oh & here's my entry page:
E-CigSmokeShoppe.com

27 Feb 2010, 11:10 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Can't get background image on entry page to display

I assume that your 'entry page' is index.html , and that's the page you want the background image on ?

If so, when you're on that page, you aren't in Zencart yet, so the relative link to the image won't work. You'll need an absolute path (http:// etc.) to the image.

Also, it looks like you've secured your entire site - generally not a good idea. Better, I think, to let Zencart decide what needs to be secure.

https://www.zen-cart.com/tutorials/index.php?article=14

27 Feb 2010, 4:02 PM
#3
jayequeue avatar

jayequeue

New Zenner

Join Date:
Feb 2010
Location:
Florida
Posts:
20
Plugin Contributions:
0

Re: Can't get background image on entry page to display

stevesh:

I assume that your 'entry page' is index.html , and that's the page you want the background image on ?

If so, when you're on that page, you aren't in Zencart yet, so the relative link to the image won't work. You'll need an absolute path (http:// etc.) to the image.

Also, it looks like you've secured your entire site - generally not a good idea. Better, I think, to let Zencart decide what needs to be secure.

https://www.zen-cart.com/tutorials/index.php?article=14

Thanks for your help :smile: Actually, I'm using default.html as my entry page because that's how it's set up. Is that wrong? Initially, when you would go to the main url it would be our hosts page. Figuring that it was already an html document I just used that already created document as the entry page - just modified it.

I was wondering if I was "over-securing" the site but when I changed the urls per the tutorial I wasn't able to view my site. Should I have not moved all folders over to the secure folder?

28 Feb 2010, 1:38 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Can't get background image on entry page to display

It doesn't matter what that page is named, I guess.

The reason I asked is that most servers are set up to load index.html first, then index.php, which would allow you to have Zencart in the root directory rather than in /storefront.

You still have a relative path to that image. Try:

<img src="http://www.e-cigsmokeshoppe.com/includes/templates/Nightfall/images/Backgroundwithgradient2.jpg)">