Hello,

I'm trying to exclude cufon replacement of child objects of my menu: I want Cufon only on the first level.

the structure is:

    • ....
  • .......

I applied cufon on the module interface using #primary ul.sf-menu a and , oviously, it applied cufon to ALL a tags.
I tried separately on scripts.js the function Cufon.replace(':not(#navbar ul.sf-menu ul.menu) > a'); but it doesn't works well.

Somebody can help me with a tip or an advice?

Thank you!

Comments

Status:Active» Fixed

Fixed in latest CVS commits (see http://drupal.org/node/550060).

thank you!

Fixed in 6--1-0-BETA4.

Status:Fixed» Closed (fixed)

Sorry, I don't understand how to use, for example, this code

$("ul > li a").not("ul li ul a")
in the cufon settings. Can you help me?

Thank you!

Status:Closed (fixed)» Active

no hints?

Hmm, that's an interesting scenario. As it stands, you can only enter a selector, so you can't use the 'not' method to filter your result. I'm drawing a blank on how to factor a selector that would work, but I'll see if I can come up with something.

I am thinking something along these lines should work: #myID li a:not("li li a") ...but I haven't tried it yet.

Status:Active» Closed (fixed)

Okay, this is possible via the technique described in the comment above, but complex selectors in the :not(...) selector are not supported in jQuery versions less than 1.3. You need jQuery update 6.x.2.x to support jQuery 1.3.x (currently 1.3.2).

I'll amend the project page with this information.

Runs good! Thank you!

@davideads, there's no such version of JQuery - only 6.x-2.x-dev, which causes this: #539960: jQuery Update is incompatible with Lightbox2

any other hints as to solving this parenting issue? I'm at a total loss here. any help is appreciated.

cheers