ThemeShaper Forums » Thematic

[closed]

Error in thematic-dropdown.js

(8 posts)
  • Started 3 years ago by posword
  • Latest reply from posword
  • This topic is not resolved
  1. Firebug is reporting the following error when my site loads (Thematic 0.9.7.7 with child theme):

    jQuery("ul.sf-menu").supersubs is not a function
    [Break On This Error] extraWidth: 1 ...sure lines don't sometimes turn over
    http://www.peterwade.com/assets/wp-content/themes/
    thematic/library/scripts/thematic-dropdowns.js line 6

    The thematic-dropdown.js reads:

    jQuery.noConflict();
    2jQuery(document).ready(function(){
    3 jQuery("ul.sf-menu").supersubs({
    4 minWidth: 12, // minimum width of sub-menus in em units
    5 maxWidth: 27, // maximum width of sub-menus in em units
    6 extraWidth: 1 // extra width can ensure lines don't sometimes turn over
    7 // due to slight rounding differences and font-family
    8 }).superfish({
    9 delay: 400, // delay on mouseout
    10 animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation
    11 speed: 'fast', // faster animation speed
    12 autoArrows: false, // disable generation of arrow mark-up
    13 dropShadows: false // disable drop shadows
    14 });
    15});

    This could be the reason why my dropdown on Articles in the horizontal menu is not working nor displaying correctly. I've been struggling with this for weeks. Any ideas?

    Thanks,
    Peter

    Posted 3 years ago #
  2. beanfair
    Member

    My drop downs were working until today. I see the same error in firebug nut I haven't touched the js file. On my home page,http://wineworldwarehouse.com/test/ I see part of the menu but on interior page, http://wineworldwarehouse.com/test/?page_id=53 no dropdowns work at all

    Posted 3 years ago #
  3. beanfair, how did you manage to fix the dropdowns?

    Thanks,
    Peter

    Posted 3 years ago #
  4. Anyone know how to fix this error in Thematic?

    Posted 3 years ago #
  5. hi peter,

    make sure you have the latest stable version of thematic.

    http://developing.thematic4you.com/thematic-development-release/

    it could be a bug in 0.9.7.7 that has since been fixed w/ the newer releases.

    i have never come across this error before so don't know quite what to say.

    if the update doesn't fix it, do you get this error if you activate Thematic (in lieu of your child theme)? If so, it is possibly a function you have in your child's functions.php.

    Posted 3 years ago #
  6. Hi, Helga, thanks for the help.

    I first tried activating the Thematic theme and I didn't get the error when loading the Home Page, so perhaps the child's functions.php is a problem.

    I renamed Thematic and then uploaded Thematic_rev756 but all it gave me was the white screen of death! Perhaps I did something wrong. The file in question, thematic_dropdown.js, has the same modified date as in the 0.9.7.7 version.

    I do have two menu items that need dropdowns, but the error doesn't affect the loading of any site pages.

    Cheers,
    Peter

    Posted 3 years ago #
  7. Helga, I should have added that the error is associated with jQuery ("ul.sf-menu").supersubs is not a function. There are a lot of "sf-menu" declarations in my child style.css but no mention of supersubs.

    Posted 3 years ago #
  8. To update the post:

    The error is caused by a conflict between the GTranslate WP plugin and WP 3.1 menus. GTranslate is loading jQuery when it is already loaded by WP.

    Thanks to helgatheviking for nailing this one.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.