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

Johnny

.. Commodore ..
Political Access
Joined
12 Jan 2004
Messages
5,015
I don't know a thing about javascript, so I can't help. I hope someone on here can ..
 

Xie

- geek -
Joined
29 Sep 2003
Messages
5,275
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. 🙂
 

ray_gillespie

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

Xie Electronic Punk 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 Sazar 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.
Terrahertz Electronic Punk Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk Sazar Electronic Punk wrote on Sazar's profile.
Where are you buddy?

Forum statistics

Threads
62,017
Messages
673,508
Members
5,636
Latest member
GLOCKTOR642
Back