Submenu must stay open
in your template you have this, I think this is what renders the accordion menu :
Code:
<script type="text/javascript" src="/nieuw/media/system/js/jquery.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('ul.menu li').each(function() {
var liCurr = this;
var liCorrente = jQuery(this);
var aParent = null;
var hasSubMenu = false;
var ulSubmenu = null;
liCorrente.children().each(function() {
if(this.nodeName.toUpperCase() == 'UL') {
hasSubMenu = true;
ulSubmenu = jQuery(this);
}
else if(this.nodeName.toUpperCase() == 'A') {
aParent = jQuery(this);
}
});
if(hasSubMenu && ulSubmenu != null && aParent != null) {
var idName = liCurr.className.replace(/\s*/g,'') + '_submenu';
ulSubmenu.attr('id',idName);
ulSubmenu.css('display', 'none');
aParent.click(function(){
jQuery('ul#'+idName).slideToggle('fast');
return false;
});
}
});
});
</script>
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
Aha...i removed this code from the index.php. Now i see the submenu's. But...it now stays open, it don't collapse...??
I have changed several options (Always submenu open on 'no' etc) but no effect...
Do u have an idea?
Thanx again!
I have changed several options (Always submenu open on 'no' etc) but no effect...
Do u have an idea?
Thanx again!
by Ernestine
Please Log in or Create an account to join the conversation.
Maximenu is NOT an accordion menu ..
you should use the Accordion menu CK available on Joomlack
CEd
you should use the Accordion menu CK available on Joomlack
CEd
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
I did not tell you to remove this code, I wanted just to say that your problem is not related to maximenu because it is not really used.
You can use your template menu but then contact the template developper if you want to customize it
Ced
You can use your template menu but then contact the template developper if you want to customize it
Ced
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
But it is a drop-down menu if i'm right? I want the submenu's to appear under 'Portfolio', thus a drop down menu...??
I used a blanco template ande made it by myself, so i'm the developer, hihi.
And i removed the script, because i used it with another menu which it also didn't work. So the script isn't useful.
I used a blanco template ande made it by myself, so i'm the developer, hihi.
And i removed the script, because i used it with another menu which it also didn't work. So the script isn't useful.
Last Edit:11 years 10 months ago
by Ernestine
Last edit: 11 years 10 months ago by Ernestine.
Please Log in or Create an account to join the conversation.
so if you put this jquery code you should know how it works !I used a blanco template ande made it by myself, so i'm the developer, hihi.
and no, the behavior you have on the menu is Accordion, not dropdown.
Ced
Joomlack Webmaster and Developer
by ced1870
Please Log in or Create an account to join the conversation.
Time to create page: 0.638 seconds