WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • css menu - several header bars - cannot get it working
  • Print
Pages: [1]   Go Down

Author Topic: css menu - several header bars - cannot get it working  (Read 4084 times)

lt635

  • Guest
css menu - several header bars - cannot get it working
« on: May 20, 2009, 02:35:51 AM »
Hi,

I am in the process of converting an existing xhtml site to website baker and I am having some issues with the menu.  The menu that I have used in the xhtml is the 'urbangreymenu' from Dynamic Drive.  The problem I am having with the template I am creating in website baker is the use of the ‘headerbar’ to separate sections with a heading that is not to be linked to any page.

What I have done so far is:

- in info.php I have created several menus, as I believe the only way to create these sections is multiple menus ($menu[1], $menu[2] etc).  This is working fine from the admin section, I can select the menu and the page falls in under the right section.

- in the screen.css i have created the menus with different names like nav1, nav2 and nav3.  Like I said the menu is working fine but I cannot get the ‘headerbar’ to work.  From what I can see there is no option to insert this in the admin section.

- in the index.php it currently looks like this:

     <div id="nav1">
          <h4><?php echo $TEXT['MENU']; ?></h4>
           <?php show_menu(1); ?>   <br />
      </div>   

        <div id="nav2"> 
            <h5><?php echo $TEXT['Adventures']; ?></h5>
            <?php show_menu(2); ?> <br />
        </div>   

        <div id="nav3"> 
           <h6><?php echo $TEXT['Links']; ?></h6>
            <?php show_menu(3); ?>  <br />
        </div> 

The h4, h5, and h6 is set as the header in each menu, I have also tried just using h4.  The first ‘echo $text’ works fine but none of the others.  I have tried several things both in screen.css and index.php, but no luck so far. 

I am hoping that somebody can assist me in solving this problem. I only have basic knowledge in php, so if somebody has a solution to my problem it would be very much appreciated.

The template can be found here: http://www.skylinetreks.com.au/index.php

The original site can be found here: http://www.skylinetreks.com.au/

Thank you
Lene
« Last Edit: May 20, 2009, 02:54:39 AM by lt635 »
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: css menu - several header bars - cannot get it working
« Reply #1 on: May 20, 2009, 03:08:05 AM »
Hi,

mmmhhhhh...
the $TEXT['MENU'] is defined in the language file but where the hell is
$TEXT['Adventures'] and $TEXT['Links'] defined :?
I assume you want to do something like this:
Code: [Select]
<div id="nav1">
         <h4><?php echo $TEXT[&#39;MENU&#39;]; ?></h4>
          <?php show_menu(1); ?>   <br />
      </div>   

        <div id="nav2">
            <h5><?php echo &#39;Adventures&#39;; ?></h5>
           <?php show_menu(2); ?> <br />
        </div>   

        <div id="nav3">
           <h6><?php echo &#39;Links&#39;; ?></h6>
           <?php show_menu(3); ?>  <br />
        </div> 

Regards Bernd
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

lt635

  • Guest
Re: css menu - several header bars - cannot get it working
« Reply #2 on: May 20, 2009, 03:15:31 AM »
Hi,

Thanks for you reply.  After spending many hours trying to solve this problem I just worked it out and uploaded the changes as I received your reply.  And you are right, it's in the language file.

If anybody else has a similar problem the solutions was to add $TEXT['Adventures'] = 'Adventures';
$TEXT['Links'] = 'Links'; to the language file.  It was probably just a coincident that 'menu' was already there and that was why that was showing.

Cheers
Lene
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • css menu - several header bars - cannot get it working
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2