WordPress.org

Ready to get started?Download WordPress

Forums

Drop down menu does not "drop down" (9 posts)

  1. zee1377
    Member
    Posted 1 year ago #

    Having trouble with the drop down menu. Check out Tiyya.org. The About, Team, and Program Tabs have child pages that does not drop down when you hover over it.

    Things I have done to try and fix it:
    -Tired deactivating all plugins and reactivating them one by one to see if they are conflicting with the menu but there no change
    -Tired creating a custom menu but the new menu still won't drop down
    -Checked the z-index settings in the css style sheet to adjust the overlap but ever thing looks fine

    Please Help!
    Thanks!
    Grace

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    Please post a link to your site

  3. zee1377
    Member
    Posted 1 year ago #

    The site is Tiyya.org

  4. Rajesh Soni
    Member
    Posted 1 year ago #

    There's a JS error on that page:

    Uncaught Error: Syntax error, unrecognized expression: ul.sf-menu .dd-tab li.current_page_item > a, ul.sf-menu .dd-tab li.current-cat > a, ul.sf-menu .dd-tab li.current-menu-item > a, ul.sf-menu li.current_page_item.dd-tab > a, ul.sf-menu li.current-cat.dd-tab > a, ul.sf-menu li.current-menu-item.dd-tab > a, ul.sf-menu li.current_page_item.regular-tab > a, ul.sf-menu li.current-cat.regular-tab > a, ul.sf-menu li.current-menu-item.regular-tab > a,

  5. zee1377
    Member
    Posted 1 year ago #

    @Rajesh Soni Any suggestion of what to do next to fix the JS error?

  6. Rajesh Soni
    Member
    Posted 1 year ago #

    Yes I tried to, but Chrome Developer tools points the error to jquery.js line# 2, which, apparently, contains NO code that resembles the error text.

    What changes have you done recently ?

  7. wprock
    Member
    Posted 1 year ago #

    Bug is here:

    $j("ul.sf-menu .dd-tab li.current_page_item > a, ul.sf-menu .dd-tab li.current-cat > a, ul.sf-menu .dd-tab li.current-menu-item > a, " +
    "ul.sf-menu li.current_page_item.dd-tab > a, ul.sf-menu li.current-cat.dd-tab > a, ul.sf-menu li.current-menu-item.dd-tab > a, " +
    "ul.sf-menu li.current_page_item.regular-tab > a, ul.sf-menu li.current-cat.regular-tab > a, ul.sf-menu li.current-menu-item.regular-tab > a,").each(function() {
    $j(this).addClass('current');
    });

    REPLACE WITH THIS CODE

    $j("ul.sf-menu .dd-tab li.current_page_item > a, ul.sf-menu .dd-tab li.current-cat > a, ul.sf-menu .dd-tab li.current-menu-item > a, " +
    "ul.sf-menu li.current_page_item.dd-tab > a, ul.sf-menu li.current-cat.dd-tab > a, ul.sf-menu li.current-menu-item.dd-tab > a, " +
    "ul.sf-menu li.current_page_item.regular-tab > a, ul.sf-menu li.current-cat.regular-tab > a, ul.sf-menu li.current-menu-item.regular-tab > a").each(function() {
    $j(this).addClass('current');
    });

    YOU WILL GET THE CONTENT FROM THIS FILE http://tiyya.org/wp-content/themes/suffusion/scripts/suffusion.js

  8. zee1377
    Member
    Posted 1 year ago #

    Wow. I will try out this code and let you know how it goes. Thank you for of your help. =)

  9. wprock
    Member
    Posted 1 year ago #

    ok.

Topic Closed

This topic has been closed to new replies.

About this Topic