Closed (fixed)
Project:
Cufón
Version:
6.x-1.0-beta3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2009 at 10:49 UTC
Updated:
1 Oct 2009 at 19:43 UTC
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
Comment #1
davideads commentedFixed in latest CVS commits (see http://drupal.org/node/550060).
Comment #2
Funkwarrior commentedthank you!
Comment #3
davideads commentedFixed in 6--1-0-BETA4.
Comment #4
davideads commentedComment #5
Funkwarrior commentedSorry, I don't understand how to use, for example, this code
in the cufon settings. Can you help me?
Thank you!
Comment #6
Funkwarrior commentedno hints?
Comment #7
davideads commentedHmm, 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.
Comment #8
davideads commentedI am thinking something along these lines should work:
#myID li a:not("li li a")...but I haven't tried it yet.Comment #9
davideads commentedOkay, 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.
Comment #10
Funkwarrior commentedRuns good! Thank you!
Comment #11
luco commented@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