Trying to add footer

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
MrB
New Member
New Member
Posts: 2
Joined: Sun Nov 13, 2011 7:20 pm

Trying to add footer

Post by MrB »

I am trying to add a footer to the The_CMS-Times full theme. I have attempted to add the footer global content block to the end of the above named template. It does work, however it shifts the original footer information to the right, placing the new footer under and to the left.

I have also noticed that in some pages it will have the footer show up on the right side just below the header.

I am currently using CMS ver 1.10.2 withe following modules installed:

CGCalendar 1.8.3
CGExtensions 1.27.2
CMSMailer 2.0.2
CMSPrinting 1.0
FileManager 1.2.0
Gallery 1.4.4
HitCounter 1.1
MenuManager 1.7.7
ModuleManager 1.5.3
News 2.12.3
Search 1.7
ThemeManager 1.1.4
TinyMCE 2.9.4

Thank you
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Trying to add footer

Post by spcherub »

If you post the template code or a link to a test page, it may be easier for us to provide some suggestions.

-S
MrB
New Member
New Member
Posts: 2
Joined: Sun Nov 13, 2011 7:20 pm

Re: Trying to add footer

Post by MrB »

Well here is the template code that is used:

{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{sitename} - {title}</title>
{metadata}
{cms_stylesheet}
</head>

</__body>
{Statistics}
<div id="wrapper">
<div id="center">
<div id="head">{cms_selflink dir="start" text="$sitename"}</div>
<div id="menu">
{menu template="cms-times : cssmenu_ulshadow"}
<!-- <div id="serach">{search searchtext="null"}</div> -->

</div>
<div id="content">
<p class="h1home">{*title*}</p>
{content}
</div>

<div id="bottom">
<div id="pfad">
{breadcrumbs starttext='' root='Home' delimiter=' » '}
</div>
<div id="options">
{print script=true}
</div>
</div>
</div>
</div>
<__body>
</__html>

I hope this helps .....

Thank you
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Trying to add footer

Post by spcherub »

Again it is hard to pin point the exact problem with just the HTML because something in the CSS could be causing the problem. But for starters, you have one too many closing </div> tags in your template.

Here is a slightly edited version of your template code (just the body section), with two possible places you could insert the footer code - the actual position depends on how your CSS is laid out.

Code: Select all

</__body>
{Statistics}
<div id="wrapper">
	<div id="center"> 
		<div id="head">{cms_selflink dir="start" text="$sitename"}</div>
		<div id="menu">
			{menu template="cms-times : cssmenu_ulshadow"}
		</div>
	<div id="content">
		<p class="h1home">{*title*}</p>
		{content}
	</div>
	
	<div id="bottom">
		<div id="pfad">
			{breadcrumbs starttext='' root='Home' delimiter=' » '}
		</div>
		<div id="options">
			{print script=true}
		</div>
		<div id="footer1">{global_content block="footer"}</div>
	</div>
	
	<div id="footer2">{global_content block="footer"}</div>
</div>
<__body>
I have given them ids of footer1 and footer2 respectively. Retain the one that makes sense based on your CSS and delete the other.

Hope that helps.
-S
Post Reply

Return to “Layout and Design (CSS & HTML)”