WebsiteBaker Support (2.8.x) > Templates, Menus & Design

a:current?

<< < (3/5) > >>

Stefek:
No, wait.

This is not right.
I'll take a look further into it....

just wait a second.

Ogierini:
It still shows the children, we should make them appear on click...

Stefek:
Hello Irene,

this should solve your child-items problem:

replace $aItemOpen, with the following:

$aItemOpen = &#39;<li><a href="[url]" target="[target]"[if(level==0 && class==menu-current){ class="active"}]>[menu_title]</a>&#39;,

then, change your selector name

#nav li.active a  .mymenu li a.active {
   color: #efaf0f;
   background-image: url(images/logomenu1.png);
   background-repeat: no-repeat;
   background-position: left center;
}

Will do the trick.

Let me know.
Regards,
Stefek

Ogierini:
Hi Stefek,

That helps, the logo only appears with the parents. :lol:

Only the children shouldn't be visible at the start, only at click. Should I change their css?

Stefek:
I see..

you need to specify this in the $aOptions Parameter.

Please try flag SM2_TRIM instead of SM2_ALL.

There are infinite possibilities with show_menu2.
Consider to read the manual / help file ;-)

Kind regards,
Stefek

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version