Missing arrow under selected menu item

More
12 years 3 months ago - 2 years 7 months ago #21564 by wosino.otten
Hi folks,

I have a very strange problem with the Hot Blankie Template. I did not install the Template with Hot Starts. I installed it over the existing Joomla 1.5.22. Anyway, i could arrange almost everything like I want to have it and a bit according to the Demo.

After installation and arranging all items, it is running perfectly, just one strange thing happens.

When you watch the demo version, you will find the arrow below the main menu always under the selected menu item. Not so with my installed version. The arrow is either always at the same position (Home) or at a position, which was not choosen or choosen before.

The arrow does not follow the mouse resp. the selection of the menu. How does it come and what can I do against it resp. what can I do that the arrow will always be under the selected menu item?

Take a look to  wosino .com

Looking forward to your help.

Regards
Sven
Last edit: 2 years 7 months ago by milos.

Please Log in to join the conversation.

More
12 years 3 months ago #21568 by ivan.milic
Open :

templates\<your template>\html\mod_menu\default.php

around line 45 find this:
if ( $item->type == 'alias' &&
in_array($item->params->get('aliasoptions'),$path)
|| in_array($item->id, $path)) {
$class .= ' active';
}

and replace it with this:
Code:
if (in_array($item->id, $path)) { $class .= ' active'; } elseif ($item->type == 'alias') { $aliasToId = $item->params->get('aliasoptions'); if (count($path) > 0 && $aliasToId == $path[count($path)-1]) { $class .= ' active'; } elseif (in_array($aliasToId, $path)) { $class .= ' alias-parent-active'; } }

Please Log in to join the conversation.

More
12 years 3 months ago - 2 years 7 months ago #21570 by wosino.otten
Dear Ivan,thank you for your quick reply.First of all I could not find this specific folder you mentioned. I only found the folder "templates\hot_blankie\html\MOD_MAINMENU". There is no folder "mod_menu". Anyway.There I found the "default.php" and I went through it to find the string you told me. No such string.So please find the "default.php" attached to this message. I just rename it to "default_php.txt" to upload it.What can I do now?Looking forward to further ideas.regardsSven

Attachment not found

Last edit: 2 years 7 months ago by milos. Reason: File missing

Please Log in to join the conversation.

More
12 years 3 months ago #21576 by ivan.milic
>if you using Hot Blankie and you don't have that folder that is no good. Maybe copying /html folder from original zip will solve problems?

Please Log in to join the conversation.

More
12 years 3 months ago #21577 by wosino.otten
Hello Ivan,

thank you. I open the Zip file of the Hot Blankie and it does not show this folder under "html". There is only "mod_breadcrumbs" and "mod_mainmenu".

So I load down the Hot Blankie version for Joomla 2.5. There it is included. But I'm using Joomla 1.5.22. So can I just copy this folder to the server, even it is for Joomla 2.5?

Looking forward to your reply.

Regards
Sven

Please Log in to join the conversation.

More
12 years 3 months ago #21578 by wosino.otten
I now copy the folder "mod_menu" from the Hot Blankie version for Joomla 2.5 into the folder "html".

I furthermore changed the code as you said in line 45 of the "default.php".

I cleaned my browser cache. I tried it on several other computers.

The arrow under the menu item will NOT change it's position.

Strange is furthermore, that when I click e.g. on "Kontakt - Ansprechpartner - Ansprechpartner Nürnberg" the arrow will change it's position to the menu item "Kontakt".

When I than change resp. click on another menu item, the arrow remains under "Kontakt".

Please Log in to join the conversation.

Time to create page: 0.154 seconds
Powered by Kunena Forum