Forums / Templates, Stylesheets, Page Layout / Removing the repeat footer

Removing the repeat footer

Locked

Started by bjmhistory on 19 Feb 2007, 1:29 AM · Views: 1,583

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Feb 2007, 1:29 AM
#1
bjmhistory avatar

bjmhistory

New Zenner

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

Removing the repeat footer

Well, here's another one today (I've been busy):

Where can I remove that repeat header which is actually the footer. I hope that makes sense. I just want to remove the footer.

You can see what I mean at http://www.historicalpreservation.org/historywiki

It is the redish footer that says "Historic Ohio"

many thanks again.

19 Feb 2007, 1:37 AM
#2
barco57 avatar

barco57

Totally Zenned

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

Re: Removing the repeat footer

#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
	margin: 0px;
	background-color: #d5c59b;
	background-image: url(http://www.historicalpreservation.org/historywiki/includes/templates/classic/images/mag_header.gif);
	padding: 0px 0px;
	font-weight: bold;
	color: #d5c59b;
	height: 90px;
	}

Remove the part in red

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

19 Feb 2007, 1:44 AM
#3
bjmhistory avatar

bjmhistory

New Zenner

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

Re: Removing the repeat footer

Very cool. Worked like a charm but a small problem. It also took my sidebox headers with it. That is fine because I didn't care much for the background however where can I insert a background color for those sidebox headers?

5 Mar 2007, 2:42 PM
#4
lostsheep avatar

lostsheep

Inactive

Join Date:
Aug 2006
Location:
ulaanbaatar
Posts:
94
Plugin Contributions:
0

Re: Removing the repeat footer

I also want to remove footer section in all pages exept home, and about us pages. Would you mind please what codes have to change?

save nature = save water

5 Mar 2007, 8:34 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Removing the repeat footer

To show or not show something on certain pages, edit your /includes/templates/your_template/common/tpl_main_page.php.
Around line 40, find

// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_right = true;
  } 

If you want to disable the footer on all pages except home and about us, you could turn it around like this:

// the following IF statement can be duplicated/modified as needed to set additional flags
  if (!in_array($current_page_base,explode(",",'home,about_us,list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_footer = true;
  } 

The ! before in_array means "not".
To get the exact names to enter in the list, go to the page in question and look in the address bar at the top of the page for main_page=.

6 Mar 2007, 9:44 AM
#6
lostsheep avatar

lostsheep

Inactive

Join Date:
Aug 2006
Location:
ulaanbaatar
Posts:
94
Plugin Contributions:
0

Re: Removing the repeat footer

Thank you buddy for your response.
I tried this code but no results. First, disappeared in all pages my footer, after some attemp, there is no change from the original, means this code isn't affecting to the view. I'm a bit surprising with it.

save nature = save water