Superfishproblems in theme "Destyle"
Permalink
I have installed the free theme "Destyle".
But the menu is not working right, and I had tryed to installe superfish again but with no luck.
ANYONE have an idea how to fix it?
Have a look:
demo.vingen.org
Thanks
But the menu is not working right, and I had tryed to installe superfish again but with no luck.
ANYONE have an idea how to fix it?
Have a look:
demo.vingen.org
Thanks
The problem is that Destyle already has a superfish dropdown menu built in. If you don't use superfish it should work fine. Nice site btw.
thanks. It have ben a problem since i first installet it. (I just installed superfish again, to see i that worked)
Is it in the destyle/superfish/superfish.css
or destyle/style.css the horizontal floating problem should be fixed??
Is it in the destyle/superfish/superfish.css
or destyle/style.css the horizontal floating problem should be fixed??
If you stop Destyle from loading the custom template that should work fine. Go to root/packages/theme_Destyle/themes/Destyle/elements and look for this this code
And replace it with
<?php $bt = BlockType::getByHandle('autonav'); $bt->controller->displayPages = 'top'; $bt->controller->orderBy = 'display_asc'; $bt->controller->displaySubPages = 'all'; $bt->controller->displaySubPageLevels = 'custom'; $bt->controller->displaySubPageLevelsNum = '3'; $bt->render('templates/header_menu_dropdown'); ?>
And replace it with
<?php $a = new Area('Header Nav'); $a->display($c); ?>
And also remove the link to superfish.css
:-(
Im too stupid... the only result I get is a blank or gone menu...
This is how u meant?:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" >
<head profile="http://gmpg.org/xfn/11">
<?php Loader::element('header_required'); ?>
<link rel="stylesheet" href="<?php echo $this->getThemePath()?>/style.css" type="text/css" media="screen" />
<link rel='stylesheet' id='superfish-css' href='<?php echo $this->getThemePath()?> type='text/css' media='all' />
</head>
<body class="noise grey">
<div id="wrapper">
<div id="main">
<div id="header-top-wrap">
<div class="ts-menu-top">
<div id="header-top">
<div id="social">
<a href="http://www.facebook.com/home.php?sk=group_123451217720971#" target="_blank" id="fb">Bliv medlem af gruppen "Vingen" på Facebook</a></div>
</div>
</div>
</div>
<div id="header" class="clearfix">
<div id="logo" class="clearfix">
<h1><a href="<?php echo DIR_REL?>/"><?php
$block = Block::getByName('My_Site_Name');
if( $block && $block->bID ) $block->display();
else echo SITE;
?></a></h1>
</div>
</div>
<div id="menu-wrap">
<div class="ts-menu-main">
<?php
$a = new Area('Header Nav');
$a->display($c);
?>
</div>
</div>
<div id="content-top"></div>
-----
By this code the menu is all gone :-(
Im too stupid... the only result I get is a blank or gone menu...
This is how u meant?:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" >
<head profile="http://gmpg.org/xfn/11">
<?php Loader::element('header_required'); ?>
<link rel="stylesheet" href="<?php echo $this->getThemePath()?>/style.css" type="text/css" media="screen" />
<link rel='stylesheet' id='superfish-css' href='<?php echo $this->getThemePath()?> type='text/css' media='all' />
</head>
<body class="noise grey">
<div id="wrapper">
<div id="main">
<div id="header-top-wrap">
<div class="ts-menu-top">
<div id="header-top">
<div id="social">
<a href="http://www.facebook.com/home.php?sk=group_123451217720971#" target="_blank" id="fb">Bliv medlem af gruppen "Vingen" på Facebook</a></div>
</div>
</div>
</div>
<div id="header" class="clearfix">
<div id="logo" class="clearfix">
<h1><a href="<?php echo DIR_REL?>/"><?php
$block = Block::getByName('My_Site_Name');
if( $block && $block->bID ) $block->display();
else echo SITE;
?></a></h1>
</div>
</div>
<div id="menu-wrap">
<div class="ts-menu-main">
<?php
$a = new Area('Header Nav');
$a->display($c);
?>
</div>
</div>
<div id="content-top"></div>
-----
By this code the menu is all gone :-(
That's what I meant. You should be able to add he menu on edit lode though, right?
Ps use [code] tags
Ps use [code] tags
thanks, now its working...
:-) just the way you said
thanks
:-) just the way you said
thanks
no problem.
Apply the 'nav-header' class to the menu <ul> and then it should work