Results 1 to 6 of 6
  1. #1

    Default 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.

  2. #2
    Join Date
    Apr 2006
    Location
    Horicon, WI
    Posts
    2,121
    Plugin Contributions
    0

    Default Re: Removing the repeat footer

    Code:
    #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
    Camelot-Hosting...A PCI compliant Ecommerce Host
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3

    Default 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?

  4. #4
    Join Date
    Aug 2006
    Location
    ulaanbaatar
    Posts
    94
    Plugin Contributions
    0

    help question 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. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default 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
    PHP Code:
    // 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:
    PHP Code:
    // 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. #6
    Join Date
    Aug 2006
    Location
    ulaanbaatar
    Posts
    94
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Removing Footer Links like Home, Privacy, Contact Us, etc.
    By Jaeca in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 19 Dec 2008, 01:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •