Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: davideads commentedFixed in latest CVS commits (see http://drupal.org/node/550060).
Comment #2
Funkwarrior CreditAttribution: Funkwarrior commentedthank you!
Comment #3
davideads CreditAttribution: davideads commentedFixed in 6--1-0-BETA4.
Comment #4
davideads CreditAttribution: davideads commentedComment #5
Funkwarrior CreditAttribution: 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 CreditAttribution: Funkwarrior commentedno hints?
Comment #7
davideads CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Funkwarrior commentedRuns good! Thank you!
Comment #11
luco CreditAttribution: 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