e107help.org Q&A
0 like 0 dislike
I want use one header and footer on all site...but I want use other header and footer on the index page (home)...how? Thanks help!
e107 version e107 v2
in Themes by (155 points) 4 16 19

6 Answers

0 like 0 dislike

It seems it can have different header & footers.

Check bootstrap3 theme.php and voux theme.php

There's some custom header & footer at the bottom of the files...
 

by (297 points) 11 30 31
0 like 0 dislike
OK, see it, but not. I use for all: $LAYOUT['_header_'] $LAYOUT['_footer_'] and for custom: $HEADER['business_1_home'] $FOOTER['business_1_home'] ...but not.
by (155 points) 4 16 19
0 like 0 dislike
Ok, i see.

So the only option is to have the $LAYOUT['_header_'] $LAYOUT['_footer_'] with a custom theme shortcode to handle diferent layouts when on specific pages....
by (297 points) 11 30 31

Just brainstorming as i am not into theming : what happens if you change xml to reflect multiple css files (style/looks) create a layout with setstyle ? Kind of BS3 where there is front site, and admin.. (those do have separate styles).

0 like 0 dislike
Sorry, I don't understand. :(  How need use? Write me example please for all page and for custom page - home).
by (155 points) 4 16 19
0 like 0 dislike
$LAYOUT['_header_']="{HEADER_SWITCH}"

$LAYOUT['_footer_']="{FOOTER_SWITCH}"

 

On theme_shortcodes.php file, define the shortcodes:

function sc_header_switch

if layout = default return default header html

if layout = bussines_home return bussiness_home header html

 

function sc_footer_switch

if layout = default return default footer html

if layout = bussines_home return bussiness_home footer html
by (297 points) 11 30 31
Sorry....What? I understand right? I can not specify the header and footer in the theme.php file??? I can only define in this complicated way​??? I think this is wrong. Why not can add example: $HEADER['business_1_home'] and $HEADER['business_full']????
As far i see, it can only be a single header and single footer, sitewide...

The custom header & footers for diferent pages setups are there, but seems not to be functional. Maybe a future implementation??
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
842 questions
1,239 answers
2,152 comments
5,546 users