WebsiteBaker Support (2.8.x) > Templates, Menus & Design
modify a template
cagnaluia:
where I'm wrong?
marathoner:
I don't know a thing about these two specific templates (and I'm not interested in spending time reviewing them) but I have a couple of thoughts.
It appears that the CSS from ALLCSS2 has both a "navContainer" and "nav" ID wrapper around the menu call. You did not indicate that you modified the index.php to include these wrappers...did you include these as well as removing any wrappers not used by this CSS? Did you look at the output generated from both templates to make sure that it's what you expected? This will show you want the browser is trying to render.
It sounds like your questions have more to do with HTML and CSS than they do with WB. You may want to look into tools such as the Firefox addon "Web Developer" to help with this project.
Just my 2 cents
cagnaluia:
ok.
I add the ID information to the DIV menu... (container and navigation)
this is the index.html page (of beautifulday template):
--- Code: ---<?php
/*
WebsiteBaker Project <http://www.WebsiteBaker.org/>
Copyright (C) 2004-2007, Ryan Djurovich
WebsiteBaker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
WebsiteBaker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with WebsiteBaker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
if(!defined('WB_URL')) {
header('Location: ../index.php');
exit(0);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
<meta name="description" content="<?php page_description(); ?>"/>
<meta name="keywords" content="<?php page_keywords(); ?>"/>
<meta name="author" content="author"/>
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/default.css" media="screen"/>
<title><?php echo WEBSITE_TITLE; ?> - <?php echo PAGE_TITLE; ?></title>
<script type="text/javascript" src="<?php echo TEMPLATE_DIR; ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo TEMPLATE_DIR; ?>/js/easySlider1.7.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#slider").easySlider({
auto: false,
continuous: true,
numeric: true
});
});
</script>
</head>
<body>
<div class="top">
<div class="header">
<div class="left">
<?php echo WEBSITE_TITLE; ?>
</div>
<div class="right">
<h2><?php echo PAGE_TITLE; ?></h2>
<p><?php page_description(); ?></p>
</div>
</div>
</div>
<div id="navContainer" class="container">
<div id="nav" class="navigation">
<small>
<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL, '[a][menu_title]</a>', '', '', '', '[a][menu_title]</a>'); ?>
<!-- <?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, '\n</li>', false, false, false, '<ul id=header_menu"clashh="menu">'</ul>); ?> -->
</small>
<div class="clearer"><span></span></div>
</div>
<div class="main">
<div class="content">
<?php page_content(); ?>
</div>
<!--
<div class="sidenav">
<?php show_menu2(0, SM2_CURR+1, SM2_START, false, false, '<li id="navlist">'); ?>
</div>
-->
<div class="clearer"><span></span></div>
</div>
<div class="footer">
<?php page_footer(); ?> | 2009 - 2010 <a href="http://www.promotionalwater.eu/wb">site</a>
</div>
</div>
</body>
</html>
--- End code ---
but... the problem is.... the site is completely BLANK...
without any source...
cagnaluia:
ok, the problem is in this line...
the original beautifulday string: (a precision: show_menu2 addon installed!)
--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL, '[a][menu_title]</a>', '', '', '', '[a][menu_title]</a>'); ?>
--- End code ---
the original allcss2 string: (same precision: show_menu2 addon installed!)
--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, '<ul id="header_menu" class="menu">'); ?>
--- End code ---
when I put this last one, all the site disappears....
cagnaluia:
I don't know why... but now it works...
I replaced word by word, manually all the string, and test it everytime.
but now.. I have a problem with the css....
look at this http://www.promotionalwater.eu/wb/
I would like use the beautifulday buttons & colors with the allcss2 usability ... it is so hard to understand...
(for example: when I click over a button, the sub-menus hide the root button..... sing)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version