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
Views: 5,800
Zen Follower
the table holds 5 hyperlinked navigation images.
can i put this in the header instead of a logo or other nav buttons?
thx,
alice
Totally Zenned
I don't see why not, just modify the right files and dump them in your template folder
Zen Follower
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
Totally Zenned
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
Zen Follower
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?
Totally Zenned
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.
Zen Follower
yes, here's the link to the main page:
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.
Zen Follower
oops, mis-typed the links.
here they are:
main page:
navigation table:
http://www.musecards.com/ws/includes/templates/custom/images/Navigation.html
Totally Zenned
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
Zen Follower
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?
Zen Follower
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...
Zen Follower
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
Totally Zenned
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" />
now move all of the table code up so it looks like this:```
<br class="clearBoth" />
<table>
table code here
Zen Follower
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.)
Totally Zenned
now we need to adjust a margin.....in your stylesheet you'll find headerWrapper...make it look like this:```
#headerWrapper{margin-top:-220px;}
Zen Follower
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
Totally Zenned
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...
Totally Zenned
Huh what did you break.....it was looking good then I went back and its all screwed up:shocking:
Zen Follower
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:
Zen Follower
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:
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:
Tell staff why this post should be reviewed.