Wordpress Child Theme - JS Help

ray_gillespie

OSNN Veteran Addict
Political Access
Joined
21 Mar 2002
Messages
1,693
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.
 

Attachments

  • jscript.rar
    1.1 KB · Views: 97
I don't know a thing about javascript, so I can't help. I hope someone on here can ..
 
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. :)
 
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!
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back