Wordpress Child Theme - JS Help

Discussion in 'Web Design & Coding' started by ray_gillespie, Aug 2, 2010.

  1. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Hi guys!

    It's been a while! I hope you're all well. How's things been around here? Any interesting news?

    Anyway, I've got a problem on one of my sites that uses Wordpress. I recently changed to using a parent->child theme setup rather than editing the original theme directly. This allows me to update the original theme to the latest releases without undoing all my customisations. However, I've got a small problem with the javascript that prevents my drop-down windows from loading.

    The site is here: www.playstationfuture.com

    As you can see, there's a couple of errors in the code that look like this:

    Code:
    Object expected
    jscript.js
    Code: 0
    URI: [URL]http://www.playstationfuture.com/wp-content/themes/piano-black/js/jscript.js[/URL]
    Line: 1
    Character: 1
    'menu.dd' is null or not an object
    [URL="http://www.playstationfuture.com/"]www.playstationfuture.com/[/URL]
    Code: 0
    URI: [url=http://www.playstationfuture.com/]PlayStation News, Information and Articles at PlayStation Future[/url]
    Line: 471
    Char: 2
    I've attached the jscript.js file in question to this message. The line in question from the CSS starts like this:

    Code:
    .menu .current_page_item a:hover,
     .menu .current-cat a:hover,
      .menu .current-menu-item a:hover
    { color:#83bac4; border-bottom:2px solid #83bac4; text-decoration:none; }
    Thanks in advance for your help.
     

    Attached Files:

  2. Johnny

    Johnny .. Commodore .. Political User

    Messages:
    5,015
    Location:
    Happy Valley
    I don't know a thing about javascript, so I can't help. I hope someone on here can ..
     
  3. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Ok, thanks anyway. Fingers crossed...
     
  4. Xie

    Xie - geek - Subscribed User Folding Team

    Messages:
    5,275
    Location:
    NY, USA
    Looks good w/out the drop downs. I'd personally rather click on the buttons on the top then try and mess with the drop downs. :)
     
  5. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Ah I see where you're coming from but they actually looked really cool when I had them working previously - it'd be a shame if I can't work out how to get them back!