By anandsueman on
i have a problem locating the footer div , i need it not to be nested in the conten div
i have looked at the page.tpl.php
<body <?php
print "class=\"$body_class sb-$layout\" id=\"$body_id\"";
print theme("onload_attribute"); ?>
>
<div id="top-nav">
<?php if (is_array($primary_links)) : ?>
<?php $i=0; ?>
<ul id="primary">
<?php foreach ($primary_links as $link): ?>
<?php $i=$i+1; ?>
<?php if ($i==count($primary_links)) print ('<li class="last">');
else print ('<li>');
?>
<?php print $link?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if (is_array($secondary_links)) : ?>
<ul id="secondary">
<?php foreach ($secondary_links as $link): ?>
<li>
<?php print $link?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<div id="page_wrapper">
<div id="header">
<?php if ($logo) : ?>
<div id="sitelogo">
<a href="<?php print url() ?>" title="Index Page">
<img src="<?php print($logo) ?>" alt="Logo" /></a>
</div>
<?php endif; ?>
<?php if ($search_box): ?>
<div id="search">
<form action="<?php print url("search") ?>" method="post">
<input class="form-text" type="text" size="15" value="" name="keys" />
<input class="form-submit" type="submit" value="<?php print t("Search")?>" />
</form>
</div>
<?php endif; ?>
<?php if ($site_name) : ?>
<h1 id="site-name">
<a href="<?php print url() ?>" title="Index Page">
<?php print($site_name) ?></a></h1>
<?php endif;?>
<?php if ($site_slogan) : ?>
<div id="site-slogan">
<?php print($site_slogan) ?>
</div>
<?php endif;?>
<?php $mission = theme_get_setting('mission', false); ?>
<?php if ($mission != ""): ?>
<p id="mission">
<?php print $mission ?>
</p>
<?php endif; ?>
<br class="clear" />
</div>
<div id="wrapper">
<?php if ($sidebar_left != ""): ?>
<div id="sidebar-left">
<?php print $sidebar_left ?>
</div>
<?php endif; ?>
<div id="main-content" class="content <?php echo $layout;?>">
<div class="w1"><div class="w2"><div class="w3"><div class="w4">
<?php if ($breadcrumb != ""): ?>
<?php print $breadcrumb ?>
<?php endif; ?>
<?php if ($title != ""): ?>
<h2 class="content-title">
<?php print $title ?></h2>
<?php endif; ?>
<?php if ($tabs != ""): ?>
<?php print $tabs ?>
<?php endif; ?>
<?php if ($help != ""): ?>
<p id="help">
<?php print $help ?>
</p>
<?php endif; ?>
<?php if ($messages != ""): ?>
<div id="message">
<?php print $messages ?>
</div>
<?php endif; ?>
<!-- start main content -->
<?php print($content) ?>
<br />
<!-- end main content -->
</div></div></div></div>
</div>
<?php if ($sidebar_right != ""): ?>
<div id="sidebar-right">
<?php print $sidebar_right ?>
</div>
<?php endif; ?>
</div>
</div>
<?php print $closure;?>
</body>
this is what i see online from my source code
!-- begin content -->
<div class="node">
<div class="content">
<p>Pelosa Network Engineering BV is een succesvol Nederlands bedrijf dat sinds 1995 gespecialiseerd is in de ontwikkeling en implementatie van branchespecifieke software die belangrijke bedrijfsprocessen automatiseert. Wij hebben ons met name toegelegd op de <a href="http://www.pelosa.nl/content/?q=clearview_main" title="schoonmaakbranche">schoonmaakbranche</a>, op de <a href="http://www.pelosa.nl/content/?q=oasys_main" title="oppervlaktebehandelende industrie">oppervlaktebehandelende industrie</a> en op de <a href="http://www.pelosa.nl/content/?q=planrad_main" title="kinderopvang">kinderopvang</a>. Voor deze branches hebben wij <strong>speciale</strong> softwarepakketten ontwikkeld.</p>
<p>De <strong>branchespecifieke software</strong> van Pelosa is generiek en sluit vrijwel altijd naadloos aan bij uw specifieke bedrijfsproces, waardoor u <strong>snel optimaal rendement</strong> binnen uw organisatie kunt behalen.</p>
<p>Onze branchespecifieke benadering geeft een voorsprong op standaardoplossingen. Pelosa software is <strong>herkenbaar</strong> door de gebruikte termen en begrippen en daardoor <strong>eenvoudig</strong> en <strong>toegankelijk</strong> voor iedereen binnen een bedrijf. Hierdoor kunnen wij een op maat gesneden oplossing aanbieden. Deze oplossingen variëren van taakgerichte oplossingen (voor bijvoorbeeld planning of facturatie) tot <strong>totaaloplossingen</strong> (voor de automatisering van de gehele bedrijfsadministratie en bedrijfsprocessen).</p> </div>
<div class="links"><a href="?q=emailpage&nid=1" title="Email this page to a friend">email deze pagina</a></div>
</div>
<!-- end content -->
<div id="footer">(c) 2006 Pelosa Network Engineering, Zoetermeer</div>
</td>
<td id="sidebar-right"><div class="block block-search" id="block-search-0">
<h2 class="title">Zoeken</h2>
<div class="content"><form action="?q=search/" method="post">
<div class="search-form"><div class="form-item">
<div class="container-inline"><div class="form-item">
<input type="text" maxlength="255" class="form-text" name="edit[keys]" id="edit-keys" size="20" value="" />
</div>
<input type="submit" class="form-submit" name="op" value="Zoeken" />
</div>
</div>
</div>
</form>
</div>
</div>
<div class="block block-simplenews" id="block-simplenews-newsletter-32">
<h2 class="title">Pelosa Nieuwsbrief</h2>
<div class="content"><div class="sn-message">Blijf geïnformeerd over het laatste nieuws van Pelosa!</div><form action="/" method="post">
<div class="sn-block"><div class="form-item">
<label for="edit-sn_email_32">E-mailadres:</label><br />
<input type="text" maxlength="35" class="form-text" name="edit[sn_email_32]" id="edit-sn_email_32" size="20" value="" />
</div>
<div class="form-item">
<label class="option"><input type="radio" class="form-radio" name="edit[sn_subscribe_32]" value="Subscribe" checked="checked" /> Meld aan</label><br /><label class="option"><input type="radio" class="form-radio" name="edit[sn_subscribe_32]" value="Unsubscribe" /> Meld af</label><br />
</div>
<input type="submit" class="form-submit" name="sn_32" value="Indienen" />
</div>
</form>
</div>
</div>
<div class="block block-event" id="block-event-1">
<h2 class="title">Activiteiten</h2>
<div class="content"><div class="item-list"></div><div class="ical-link"><a href="webcal://pelosa.project-8.nl/?q=event/ical" title="Add this calendar to your iCalendar"><img src="modules/event/images/ical16x16.gif" alt="Add to iCalendar" /></a></div><div class="more-link"><a href="?q=event" title="More events.">meer</a></div></div>
</div>
<div class="block block-user" id="block-user-3">
<h2 class="title">Wie is online</h2>
<div class="content">Er zijn momenteel 0 users en 0 gasten online.</div>
</div>
</td>
</tr>
</table>
</body>
</html>
please not where the footer div is ,
take a look at http://pelosa.project-8.nl
how do i get the footer div out of the content div ????
Comments
Chameleon
You are using Chameleon, a pure php theme; no page.tpl.php is involved. To modify chameleon open themes/chameleon/chameleon.theme and locate the lines;
It is, however, not inside a content div. It's inside the content table; simply move the lines below
And it's outside the table.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
still having the problem
i have modified the file
this what i have right now
i have modified this piec of code
$output .= theme_status_messages();
$output .= "\n
\n";
$output .= $content;
$output .= "\n
\n";
$output .= "
\n";
if ($blocks = theme_blocks("right")) {
$output .= "
\n";
}
$output .= "
\n";
$output .= "
\n";
if ($footer = variable_get('site_footer', '')) {
$output .= "
\n";
}
, but online it is still giving the same outcome as before
take a look at http://pelosa.project-8.nl
where else can it go wrong ???
problem is solfed, but there is stil an issue
we basicly the problem is solved with the help of heine ,
but the main page (index page )needs to be refreshed in order for the footer to outline correctly
everytime i go directly to the link http://pelosa.project-8.nl the footer is still in the table. but by refreshing the page i loads normaly again.
anyone know why this happens ???
the issue has been takkeld
thanx for the help heine ,
it was a browser clitche , so fixed
Clear browser cache
That seems to be a (browser) caching issue. Simply clear it's cache and all should be well.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.