Ok i have seen which site through analytics
http://soren-nornberg.dk/index.php?page=sidste-nyt
Sorry for that, but to be honest i didn't test the Template with sectionheaders
Here is what to do:
In MenuManager, cpoy/paste this code instead of the one used now.
Code: Select all
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}
{elseif $node->index > 0}{/if}{if $node->current == true}
url}" class="current"{if $node->target ne ""} target="{$node->target}"{/if}>
{$node->menutext}{elseif $node->parent == true && $node->depth == 1}
url}" class="current"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{elseif $node->type == 'sectionheader'}
{$node->menutext}{elseif $node->type == 'separator'}
{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}{/if}
{/foreach}{repeat string="" times=$node->depth-1}
{/if}
And in Stylesheet look for this code, it starts on line:478
Code: Select all
.sf-menu li a:link, .sf-menu li a:visited {
display: block;
font-size: 0.9em;
line-height: 28px;
color: #fff;
background: transparent;
padding: 0 5px;
font-weight: bold;
-moz-text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
-webkit-text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
text-transform: uppercase;
border: none;
text-decoration: none;
margin-right: 5px;
}
.sf-menu li a:hover, .sf-menu li a:active, .sf-menu li a.current {
line-height: 26px;
-moz-border-radius: 5px !important;
-webkit-border-radius: 5px !important;
border-radius: 5px !important;
-moz-box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5) !important;
-webkit-box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5) !important;
box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5) !important;
border: 1px solid rgba(0,0,0,0.25);
background: #7e0219;
padding:0 4px;
}
.sf-menu li li a:link, .sf-menu li li a:visited {
background: #7e0219;
text-transform: none;
text-shadow: none;
height: 26px;
line-height: 26px;
font-weight: normal;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
border: none;
margin: 0;
}
.sf-menu li li a:hover, .sf-menu li li a:active, .sf-menu li li a.current {
background: #910b24;
text-decoration: none;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
border: none;
padding: 0 5px;
}
And replace with this:
Code: Select all
.sf-menu li a:link, .sf-menu li a:visited, [color=red].sf-menu li.sectionheader[/color] {
display: block;
font-size: 0.9em;
line-height: 28px;
color: #fff;
background: transparent;
padding: 0 5px;
font-weight: bold;
-moz-text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
-webkit-text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
text-transform: uppercase;
border: none;
text-decoration: none;
margin-right: 5px;
}
.sf-menu li a:hover, .sf-menu li a:active, .sf-menu li a.current {
line-height: 26px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
-webkit-box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
border: 1px solid rgba(0,0,0,0.25);
background: #7e0219;
padding:0 4px;
}
.sf-menu li li a:link, .sf-menu li li a:visited, .[color=red]sf-menu li.sectionheader li a:link, .sf-menu li.sectionheader li a:visited[/color] {
background: #7e0219;
font-size: 1em;
text-transform: none;
text-shadow: none;
height: 26px;
line-height: 26px;
font-weight: normal;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
border: none;
margin: 0;
}
.sf-menu li li a:hover, .sf-menu li li a:active, .sf-menu li li a.current, [color=red].sf-menu li.sectionheader li a:hover, .sf-menu li.sectionheader li a:active[/color] {
background: #910b24;
text-decoration: none;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
border-radius: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
border: none;
padding: 0 5px;
}
So i have added in the menu template and added li.sectionheader in the stylsheet.