Wordpress Child Theme - JS Help

ray_gillespie

Moderator
Staff member
Political User
#1
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

Xie

- geek -
#4
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

Moderator
Staff member
Political User
#5
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 posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,969
Messages
673,295
Members
89,015
Latest member
arrangel