Menu won't show up

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
merekat

Menu won't show up

Post by merekat »

I can't seem to get this menu to show up. Now sure what I'm doing wrong.

Here's the code for the template where the menu stuff is

Code: Select all

<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<meta name="description" content="">
	<meta name="keywords" content="">
	{metadata}
{stylesheet}{stylesheet}
	<![endif]--></head></__body>
	<div id="skiplink"><a href="#content">Skip to Main Content</a></div>
	<div id="container">
		<h1><span></span></a></h1>
		<h2></h2>
		
		<div id="rightcolumn">
<ul id="inthebooknav"><div id="navi"> {menu template='cssmenu.tpl'}                                                                
        		  
</div>


And for the Navigation: CSSMenu - Horizontal (whihc is attached to the template)

Code: Select all

#navi
{
position:absolute;

}
#navi ul
{
position:relative;
margin: 0.57em;
padding: 15px 0 15px 15px;
list-style-type: none;
color: #004076;
font-size: 22px;
font-family: georgia;
}

#navi ul li { display: inline; }

#navi ul li a
{
text-decoration: none;
padding: 15px 10px 16px 10px;
color: #004076;
font-size: 22px;
text-decoration: underline;
}

#navi ul li a:hover
{
text-decoration: none;
}

What am I missing?
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Menu won't show up

Post by KO »

First of all single {stylesheet} should be enough.

Secondly you missing Javascript from the template header making menu pop-out and you most likely using IE.

add it there.




I hope this helps.

Br, K
merekat

Re: Menu won't show up

Post by merekat »

I'm using Firefox. I copy and pasted your bit of code into the template but it's still not working.

This is really strange. Usually I don't have any problem with the menus but this one just won't show up.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Menu won't show up

Post by KO »

What kind of source code you get around menu? Is menu manager giving out anything.
Do you have that menu template as file in /modules/MenuManager/templates ?
merekat

Re: Menu won't show up

Post by merekat »

This is the source code where the menu should be. It looks like it's working, but it doesn't show on the page.

Code: Select all

<div id="menuwrapper">

<ul id="primary-nav">
	<li class="menuactive"><a class="menuactive" 
href="http://www.urlhere.com/index.php?page=home" accesskey="1" title="Home Page, shortcut key=1"><dfn>1: </dfn>Home</a>
Do you have that menu template as file in /modules/MenuManager/templates ?
Which menu template?
merekat

Re: Menu won't show up

Post by merekat »

Anyone? It's still not working.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: Menu won't show up

Post by Greg »

Take a look at this post to see if it helps.
Greg
Vin

Re: Menu won't show up

Post by Vin »

merekat wrote: This is the source code where the menu should be. It looks like it's working, but it doesn't show on the page.

Code: Select all

<div id="menuwrapper">

<ul id="primary-nav">
	<li class="menuactive"><a class="menuactive" 
href="http://www.urlhere.com/index.php?page=home" accesskey="1" title="Home Page, shortcut key=1"><dfn>1: </dfn>Home</a>
Uh-huh... so, the menu is in the html source output in the page, but it doesn't show up... looks like CSS problem here.
So... does the menu show up at all or are you unable to make just the children show up?
merekat

Re: Menu won't show up

Post by merekat »

Uh-huh... so, the menu is in the html source output in the page, but it doesn't show up... looks like CSS problem here.
So... does the menu show up at all or are you unable to make just the children show up?
No, I can't get the menu to show up at all. I've done menus quite a few times this way and it's always worked before, but for some reason this time it just won't show up. I haven't a clue why.

Any other suggestions?
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Menu won't show up

Post by KO »

Any possibility to have link to that site?
merekat

Re: Menu won't show up

Post by merekat »

Can you just tell me what part of the code you need to see and I'll post it here?
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Menu won't show up

Post by KO »

it is just much faster if checking directly site with combination of source code and css together with "web developer" or something. it also shows if some other problems like missing divs, confusing css styles, etc. But i understand that this is not always possible.

If you see the source code like you posted then it must be css problem like Vin suggested earlier. Get "web developer" add-on to your firefox browser and spend some time editing css in real time with it. There must be something like "display:none" or "position:absolute;text-indent:-999em" somewhere. You should be able to find it with it.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu won't show up

Post by Dr.CSS »

Not sure what other CSS you have attached to this template but you may want to change the 'navi' to primary-nav in the CSS...

Or change the menu template to navi...
Locked

Return to “Layout and Design (CSS & HTML)”