![]() |
Include header
Can I include the same header on my store pages that i use throughout the site? If yes, how? I was ble to find file called rectangle_top_cust.tpl that sort of serves as the header. I'd like to have the same header though.
|
head.tpl
|
Is that skin1/head.tpl ?
Seems like a whole lot of code there... |
Yes. And yes, there is a lot up there by default (tabs, search bar, language selection, etc). Depending on your design, you can nuke quite a bit of that.
|
Well, all i want is to include my header that I use throughout.
Can I just go nuclear and replace all with something like: Code:
{ include file="/includes/myheader.php" } |
Well I wouldn't include a php file no. Use a .tpl file. If you want to get rid of everything in head.tpl, go for it and replace it with whatever content you want. There isn't anything up there that is essential to the operation of the store...you can include the search, language selection and printable link elsewhere. You can always restore it from skin1_orignal later if you want.
|
Why won't you recommend including .php file. I just put the way I wanted it and it works just fine.
I used to have store (with Miva) that I had to keep separate header code. I hated it - always forgot to update it thoughout. I just tweaked my header and make it SSl compatible. Do I need to keep this: {* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *} Is it sort of like a comment? |
Oh you mean including the php file IN head.tpl...yes, that would work fine. No, you don't need to keep that comment.
|
I've got search integrated into my header. I do not believe into searching store appart from my site :)
|
Oh, yes, I keep .tpl files, just call in my php.
|
All times are GMT -8. The time now is 12:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.