Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 11:09:23 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155404 Posts in 21698 Topics by 7730 Members
Latest Member: anybig0391d
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Current class in menu - problem  (Read 1180 times)
invalid

Offline Offline

Posts: 3


« on: July 14, 2008, 08:54:14 AM »

Hey there! I have a major problem. I can't make active links appear in website baker, although I use the class menu_current.
Here is the css,
 .menu_current  {
        display: block;
background-image: url('images/img03a.gif');
    color: #AA2808;
         
     
}


And the problem is situated in the php command, show_menu
When I use the 'class="menu_current" ' between the parentheses, nothing happena and the page doesn't even appear  cry cry cry
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #1 on: July 14, 2008, 09:12:35 AM »

Hello,

look at the source code of your page to find out wich classes your menu call prints out and the define them.

Matthias
Logged
invalid

Offline Offline

Posts: 3


« Reply #2 on: July 14, 2008, 09:59:10 AM »

This is my css file concerning the menu

/* Menu */


 .menu_current  {
        display: block;
background-image: url('images/img03a.gif');
    color: #AA2808;
         
     
}



#menu {
margin-top: -40px;
position:relative;
    float:right;
    padding-right: 8px;
   
   

   
}




#menu ul {
    margin: 0;
    padding: 0px 0 0 0;
    list-style: none;
    line-height: normal;
}

#menu li {
    display: inline;
}

#menu a {
    display: block;
    float: left;
    width: 110px;
    height: 20px;
    margin: 0;
    padding: 10px 0 0 0;
    background: url('images/img02a.gif');
    text-align: center;
    text-transform: lowercase;
    font-size: 11px;
    font-weight: bold;
    color: #FFFFFF;
}

#menu a:hover, a.menu_current
{
    background-image: url('images/img03a.gif');
    color: #AA2808;
}


Logged
invalid

Offline Offline

Posts: 3


« Reply #3 on: July 14, 2008, 10:06:32 AM »

and the .php code is

<div id="menu"><?php if(SHOW_MENU) { /* Only shown menu if we need to */ ?>
        <?php show_menu(1,1,-1, true,'<li  >[a][menu_title][/a]' , 'class="menu_current"');?>
        <?php } ?>
</div>
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #4 on: July 14, 2008, 10:43:59 AM »

Hello,

i meant not in the php code of index.php, i meant if you call your page in your browser and look then in the source code of your browser.

But from the code of you index.php i think you will see that all menu points will have the class menu_current, not only the current ones.

For how to configure the menu call please look on our help page.

Matthias
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!