I've just had a look and the mainWrapper is there, but there's no table starting tag directly underneath...is that wrong? It looks like this:
HTML Code:<div id="mainWrapper"> <!--bof-header logo and navigation display--> <div id="headerWrapper">
I've just had a look and the mainWrapper is there, but there's no table starting tag directly underneath...is that wrong? It looks like this:
HTML Code:<div id="mainWrapper"> <!--bof-header logo and navigation display--> <div id="headerWrapper">
Your code looks to be from tpl_header.php and no mainWrappper is there by default it looks like this:
tpl_main_page.php has the div in question and this is unless you have made edits and then I would have to see exactly what you changedCode:<?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back">
Code:?> <div id="mainWrapper"> <?php /** * prepares and displays header output * */
Zen-Venom Get Bitten
I've checked both files and they look like your above post, but to be sure I've replaced them with their original files and the page looks exactly the same.
Is it something to do with the CSS in the stylesheet and/or the divs in controls in sideboxes/tpl_information.php?
here's the code for that if it helps and thanks for the help :)
HTML Code:$linksarr = array("shippinginfo","privacy","conditions","contact_us","site_map"); $content = ''; $content .= '<div class="informationMain"><div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; $content .= '<div class="informationHeader"></div>'; $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n"; for ($i=0; $i<5; $i++) { //$content .= '<li>' . $information[$i] . '</li>' . "\n"; $content .= '<div class="infoLink"><a href="index.php?main_page=' . $linksarr[$i] . '"><img src="includes/templates/ios/images/information/' . $i . '.png" /></a></div>' . "\n"; if($i !== 4){ $content .= '<div class="informationSideboxHrs"></div>'; } } $content .= '</ul>' . "\n"; $content .= '</div><div class="imageHeader"></div></div>';
Look at your view source in your browser - there is no mainWrapper div that is rendering
Zen-Venom Get Bitten
If you replaced them both your header would not look as you have it designedI've checked both files and they look like your above post, but to be sure I've replaced them with their original files and the page looks exactly the same.
Where(path) did you replace these and are you looking at these?
Zen-Venom Get Bitten
I replaced them within the template files - includes/templates/mytemplate/common/
The header background image is defined in the stylesheet so I can change the header design without using those files?
I'm really sorry, but I'm unsure on what you mean about the mainWrapper div. I've managed to put a black border around it so surely it must be rendering?
Last edited by mikeeeeeeey; 17 Sep 2007 at 04:04 PM.
When viewing your main page in your browser right click in the window and select "view source" and the generated html will be displayed....It is here that the normal location for the mainWrapper is not being rendered and this leads me to belive that these are not from default files
Zen-Venom Get Bitten
I've copied the template_default directory, renamed it 'ios' so now this is my new template directory.
The only files I've replaces are css/stylesheet.css, the images folder, and sideboxes/tpl_information.php
These are the only files I have replaced, so other than those there are all default files.
Is it at around line 57 you expect to see the mainWrapper html?
As I posted earlier - By default it should be in between these two lines:
Code:</div> RIGHT HERE <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper"> <tr>
Zen-Venom Get Bitten