Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Issue adding images to main_page

Issue adding images to main_page

Locked

Views: 3,061

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
7 Sep 2006, 9:20 PM
#1
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Issue adding images to main_page

I have been really struggling with a design that I am trying to implement. this just should not be this tough - I have two additional images - one is to be at the top of the left column before the info boxes and the other the top of the right column before the info boxes. I've set each of the columns to accomdate these images.

I've created divs for each of these and moved them around like crazy. I can them placed just where I want them, but it breaks the rest of the page, forcing the center column contents to line up below them. And when it looks like I'm getting close - I check IE and forget it - everything is skewed. (I develop in Mozilla and make adjustments for IE).

I've tried building a fresh template completely with css... that was a disaster. Then I went back and am now trying to use the classic as a model (1.3.5) and I just can't figure this out. Can someone that is smarter than me at this show me where to insert my divs for each of these columns where the center doesn't end up in the basement somewhere? I'm beginning to feel like a total novice that has never built a template before - like I said - this just shouldn't be this hard

Any help would be hugely appreciated.

7 Sep 2006, 9:53 PM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,594
Plugin Contributions:
0

Re: Issue adding images to main_page

Ruth,

A mock up or the URL would be helpful to see this better.

7 Sep 2006, 10:27 PM
#3
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Issue adding images to main_page

I can do better - this is where I have the site "hidden" for the moment . Wait - Is there a way now with these new forums to give a URL with a text link? LOL.. I find my forum posts in the search engines later and I'd rather not have that if possible. Otherwise I'll PM you the url.

7 Sep 2006, 10:41 PM
#4
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Issue adding images to main_page

Oh, well.. here's the link - I wish that we could hide links as in the past with "my site"
http://newagecare.com/zen135/

7 Sep 2006, 11:26 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Issue adding images to main_page

Your page contains hard-coded image links like this:

[B]http://localhost/zen-cart135[/B]/includes/templates/newagecare/images/header_2.gif
8 Sep 2006, 1:15 AM
#6
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Issue adding images to main_page

Ok, I'll try moving them into the css, but that did work earlier. This was another attempt.

Thanks

8 Sep 2006, 1:46 AM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Issue adding images to main_page

rwoody:

Oh, well.. here's the link - I wish that we could hide links as in the past with "my site"
http://newagecare.com/zen135/

You can!

type "My Site" highlight it and then click on the link add in the link information and click OK.

Like this My Site

8 Sep 2006, 2:23 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Issue adding images to main_page

Issue adding images to main_page
The "MainPage" is a big place...exactly where are you trying to add the image??

If in the "center" section (if you are 3 column), you can add it through the defines page editor in the admin to the define_mainpage.php file and have it appear something like this:Sample Site

8 Sep 2006, 3:28 AM
#9
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Issue adding images to main_page

In my original post I stated the following -

I have been really struggling with a design that I am trying to implement. this just should not be this tough - I have two additional images - one is to be at the top of the left column before the info boxes and the other the top of the right column before the info boxes. I've set each of the columns to accomdate these images.

The right column has an image at the top of the column - not a background image and then there is another image (actually there will be several, but i have to get these to line up first) that will lay inside the right column.

I've played with it a bit more. If you view the link in FireFox - I'm really close to having the first part of this done - but when you use IE its a disaster. I want the images to be maintained in the appropriate columns so as not to affect the center content, thus they were designed to fit there nicely, but each thing I try creates all kinds of issues.

Also - Thanks Dr. Bytes - I've done that before when testing - I forget when I upload the files to change the image paths to the normal site path vs. my local path. But since it's cached on my machine.. I still see them. path is fixed now so you can see my delimma.

Guys I've been at this, what I thought would be simple for hours... can someone please feel sorry for me and tell me I'm doing wrong. I'll do your dishes for you for a week... (and I hate dishes)

I'm going to finally go eat something - haven't left this computer all day.. maybe when I come back someone will have thought of something I obviously don't. I know its going to be simple... It ususally is and I ususally figure it out myself.. but this just has me beat!!

Thanks guys for taking a peek and for the help on the link... I had tried the standard brackets and it did not work - so thanks for that bit of information

mysite

8 Sep 2006, 4:23 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Issue adding images to main_page

I think that your problems are inside your layout table in tpl_main_page.php:

  1. For the bar under the header area, before you draw the left column, you have inserted a DIV inside a TR, and not closed the TR before opening another one:```html
<tr> <div id="bodytop"><img src="includes/templates/newagecare/images/body_top.gif" width="553" height="84" /></a></div> <tr> ```
  1. Before drawing the right column, you have more mismatched table elements:```html
</td> <div id="imagemap"><img src="includes/templates/newagecare/images/alpha_map2.gif" width="194" height="206" /></a></div> ```

You likely don't want to put DIV's directly into TR's ... make TD's for them in order to be more compliant.
Also, don't put DIV's between TD's ... put them INside TD's.

10 Sep 2006, 11:26 PM
#11
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Issue adding images to main_page

I was finally able to solve my issues. Thanks for pointing out the obvious. Guess I was just suffering from tired eye blur : ' )