Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can the header include an HTML table?

Can the header include an HTML table?

Locked

Views: 5,800

Results 1 to 20 of 28
This thread is locked. New replies are disabled.
4 Feb 2007, 2:36 AM
#1
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Can the header include an HTML table?

the table holds 5 hyperlinked navigation images.

can i put this in the header instead of a logo or other nav buttons?

thx,
alice

4 Feb 2007, 2:38 AM
#2
intelcos avatar

intelcos

Totally Zenned

Join Date:
Apr 2004
Location:
Montreal
Posts:
584
Plugin Contributions:
0

Re: Can the header include an HTML table?

I don't see why not, just modify the right files and dump them in your template folder

4 Feb 2007, 2:50 AM
#3
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

Great, which file(s) do i need to modify? i've looked around and thru the forums too, but am not seeing it for some reason.

Thanks in advance,
Alice

IntelCos:

I don't see why not, just modify the right files and dump them in your template folder

4 Feb 2007, 3:46 AM
#4
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Can the header include an HTML table?

includes/templates/YOUR_CUSTOM_TEMPLATE/common/tpl_header.php

Just copy the one from the default template and after you edit it save it to your custom template

4 Feb 2007, 4:17 AM
#5
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

Thanks Mike.

i had the common files set up in my custom folder, so i tried that but w/o success.

Being a total ZC neophyte, i could not figure out how to insert my own html file into the tlp_header file (what to type and where.)

what i'm trying to incorporate as my header is a file containing only a table with 5 rows containing 5 roll-over navigation gifs.

where in the tlp_header.php file do i put the code in and what do i type in?

4 Feb 2007, 4:24 AM
#6
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Can the header include an HTML table?

Do you have a mock up of what you are trying to do? Based on what you want it to look like will determine where to put the table. And maybe a url of what you currently have.

4 Feb 2007, 4:31 AM
#7
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

yes, here's the link to the main page:

http://www.musecards.com/ws/

And here's the link to the navigation table:

http://www.musecards.com/ws/ws/includes/templates/custom/images/Navigation.html

The nav table needs to go at the very top (i have to push down the rest of the text and get rid of the ZC logo too.)

thanks so much.

4 Feb 2007, 3:27 PM
#9
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Can the header include an HTML table?

Lets see if I got this right. Find this section of the tpl_header file```

<!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div> ```

comment out the section in red so it looks like this:

<!--bof-branding display-->
<div id="logoWrapper">
   <!--<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>-->

you would then add the html right after the commented out section starting at the <table> tag and ending at the </table> tag so everything looks like this:

<!--bof-branding display-->
<div id="logoWrapper">
   <!--<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>-->
<table>
       rest of table code here
</table>

Leave everything else in the file as it is. Hopefully I got that correct

4 Feb 2007, 4:00 PM
#10
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

Huge help; thanks Mike.

I went ahead and posted it, but the header is not showing up, BUT, when you first load the page, you kinda see it wanting to load and then disappearing:

http://www.musecards.com/ws/index.php?main_page=

Could it be that i have something turned off, or a setting is preventing the table to show up?

4 Feb 2007, 4:09 PM
#11
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

Ok, i fixed the problem.
Now i just need to move it up on the page.

Thanks for the help, Mike!

The spacial ralationships have been the most challenging for me, figuring out what part of the code changes what element.

But i'll give it go.

Thanks a million...

4 Feb 2007, 4:51 PM
#12
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

yikes, i can't figure our how to move the table up. Looked in the CSS and the tlp files, but the margins are all set to 0.

any idea what i'm doing wrong?

thanks in advance,
alice

4 Feb 2007, 5:46 PM
#13
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Can the header include an HTML table?

ok lets see what we get with this.....find this in the tpl_header.php...its a couple of lines above we you inserted the table code```
<br class="clearBoth" />

</div> <!--eof-navigation display--> ```

now move all of the table code up so it looks like this:```
<br class="clearBoth" />
<table>
table code here

</table> </div> <!--eof-navigation display--> ```
4 Feb 2007, 6:35 PM
#14
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

strange, but that didn't fix it. :(

could it be something else in there or in another php page...?

(i've attached my tlp_header file as a .txt file in case you need to see it.)

4 Feb 2007, 7:01 PM
#15
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Can the header include an HTML table?

now we need to adjust a margin.....in your stylesheet you'll find headerWrapper...make it look like this:```
#headerWrapper{margin-top:-220px;}

4 Feb 2007, 7:13 PM
#16
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

Brilliant! Thanks so very much.

It's so much easier when someone just gives you the code and where to put it!
My head's spinning from the ZC file system and all the same-name files in various places. And i thought Flash was complex!

Many thanks, Mike. You saved the day!

Cheers,
Alice

4 Feb 2007, 8:05 PM
#17
intelcos avatar

intelcos

Totally Zenned

Join Date:
Apr 2004
Location:
Montreal
Posts:
584
Plugin Contributions:
0

Re: Can the header include an HTML table?

LOL, I know what you feel like. Mine's been on a spin since I did the first install.:lamo:

But, everyonce in a while it stops and you see the light...

4 Feb 2007, 8:35 PM
#18
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Can the header include an HTML table?

Huh what did you break.....it was looking good then I went back and its all screwed up:shocking:

6 Feb 2007, 3:49 PM
#19
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

Ugh, i have no idea... :cry:
I didn't change a thing.
I didn't work on it all day yesterday and this morning... GONE!
Hmmm, any ideas?

:down:

barco57:

Huh what did you break.....it was looking good then I went back and its all screwed up:shocking:

6 Feb 2007, 4:01 PM
#20
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: Can the header include an HTML table?

k, you can load it if you use this link:

http://www.musecards.com/ws/index.php?main_page=

But NOT if you use this:

http://www.musecards.com/ws

i can't begin to figure out what went wrong or what i did.

but i guess my main concern (aka: obssession) is with creating the body in a table (4 boxes for the "Features" products.)

Oh, and also changing the font size on the inside pages from gargantuan to normal!

i'll take any tips you'll have to share!

thanks for all your help.
i'd be in a padded room with out it...

:dontgetit
alice in zen-land

barco57:

Huh what did you break.....it was looking good then I went back and its all screwed up:shocking: