First item in accordeon always active
7 years 5 months ago - 7 years 5 months ago #45687
by jhoerlein
First item in accordeon always active was created by jhoerlein
Hello,
My site includes two uses of the accordeon module. The first menu ( jphtest.com/index.php/dlintro2 ) works correctly, but the second menu ( jphtest.com/index.php ) does not. In this second menu, its first item that has a submenu item, 2017, is always active, even when it is not selected. Both of the menus are built in exactly the same way with the first level item being an 'alias' that is connected to the first menu item under it.
How can I change the 2nd menu so that the first level 1 item in the menu is active only when it is selected?? Thanks much.
My site includes two uses of the accordeon module. The first menu ( jphtest.com/index.php/dlintro2 ) works correctly, but the second menu ( jphtest.com/index.php ) does not. In this second menu, its first item that has a submenu item, 2017, is always active, even when it is not selected. Both of the menus are built in exactly the same way with the first level item being an 'alias' that is connected to the first menu item under it.
How can I change the 2nd menu so that the first level 1 item in the menu is active only when it is selected?? Thanks much.
Last edit: 7 years 5 months ago by jhoerlein.
Please Log in or Create an account to join the conversation.
7 years 5 months ago #45689
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic First item in accordeon always active
Hi
I think that your request is a duplicate of this
forum.joomlack.fr/index.php/13-accordeon...ordeon-menu?start=30
Am I right ?
CEd
I think that your request is a duplicate of this
forum.joomlack.fr/index.php/13-accordeon...ordeon-menu?start=30
Am I right ?
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
7 years 5 months ago #45690
by jhoerlein
Replied by jhoerlein on topic First item in accordeon always active
Hello CED1870,
I felt that our previous string of questions and answers was getting too long, so started a new conversation. You'll note that there is now a new menu, Diamond Light menu ( jphtest.com/index.php/dlintro2 ) which also uses the accordeon extension, but which works correctly. It's menu structure is exactly the same as our problem menu!! You'll also note the light blue menu on the site, which is the planetaryConsc menu as a modMenu.
Thanks for your help.
I felt that our previous string of questions and answers was getting too long, so started a new conversation. You'll note that there is now a new menu, Diamond Light menu ( jphtest.com/index.php/dlintro2 ) which also uses the accordeon extension, but which works correctly. It's menu structure is exactly the same as our problem menu!! You'll also note the light blue menu on the site, which is the planetaryConsc menu as a modMenu.
Thanks for your help.
Please Log in or Create an account to join the conversation.
7 years 5 months ago #45691
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic First item in accordeon always active
you can now see that the accordeon menu works correctly 
the problem is in your menu structure, as already explained and this is out of the scope of the module. I can not tell you where exactly the error is located in your menu, but there is one
You can try to add this css rule in your template
it will hightlight the active elements in red. You can easily see that your item "2017" ID 2328 is active on the home page and all other pages, but also in the other menu ! this is not a problem specific to Accordeon Menu CK
CEd

the problem is in your menu structure, as already explained and this is out of the scope of the module. I can not tell you where exactly the error is located in your menu, but there is one
You can try to add this css rule in your template
Code:
li.active {
color: red !important;
}
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.230 seconds