Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Forum loaded at bottom of page
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2013 - 7:51 pm

actually, that image is supposed to be there... its part of theme... not a pleasant background image, but thats what it is in the theme... 

the problem is that the theme has some custom js that runs on page load and adds some inline styles to the background to make it display properly... on the forum page, that js is failing with errors...

TypeError: $ is not a function
http://styledinthewild.com/wp-.....js?ver=1.0
Line 31

I suspect its because the theme is breaking wp standards and incorrectly loading its own version of jquery rather than the version of jquery that comes with wp...

<script type='text/javascript' src='http://styledinthewild.com/wp-content/themes/theme1658/js/jquery-1.6.4.min.js?ver=1.6.4'></script>

see:   http://codex.simple-press.com/.....-conflict/

so if you fine where in the theme its doing that incorrectly, we can help correct it...  likely in the functions.php file...

Avatar
Nicholas Kush
Member
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2013 - 11:58 pm

I understand what your talking about, just not what to look for

Avatar
Nicholas Kush
Member
Free Members
sp_UserOfflineSmall Offline
Feb 15, 2013 - 12:07 am

Page source Forums

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 15, 2013 - 5:16 am

No point in sending me page source. I can look at that directly on your site.

And I didn't find the badly loading jQuery in the theme functions file either which is not a good sign as that, really, would be the standard place if you were going to break this particular rule.

So - somewhere else in the theme (probably in the theme) it is loading it;s own, old version of the jQuery library and you really need to find out where. Actually looking through the code for this is probably the only way although having it local and searching with an editor is quicker of course.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Nicholas Kush
Member
Free Members
sp_UserOfflineSmall Offline
Feb 15, 2013 - 6:40 am

If I know what I was looking for it wouldn't be an issue, but most code looks the same to me. Is it better to have the code from the server side , or the code from the admin control of the theme?

Avatar
Nicholas Kush
Member
Free Members
sp_UserOfflineSmall Offline
Feb 15, 2013 - 6:49 am

Theme Script

Avatar
Nicholas Kush
Member
Free Members
sp_UserOfflineSmall Offline
Feb 15, 2013 - 10:03 am

When I hd my site updated, a few weeks ago they updated WP to 3.5, doesn't this come with the newest version of jQuery?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 15, 2013 - 1:42 pm

Yes indeed - WordPress came with the latest, up-to-date version of jQuery. And that makes the problem worse when your theme insists on loadings its own copy instead of the WP copy and it is about 3 versions out of date.

You didn't look too hard for the jQuery loading. It was the very first item in the pdf you attached. Find it here:

wp_deregister_script('jquery');
wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.6.4.min.js', false, '1.6.4');
wp_enqueue_script('jquery');

change that code by commenting two of them out as I have done below:

//wp_deregister_script('jquery');
//wp_register_script('jquery', get_bloginfo('template_url').'/js/jquery-1.6.4.min.js', false, '1.6.4');
wp_enqueue_script('jquery');

That at least solves the first problem.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Nicholas Kush
Member
Free Members
sp_UserOfflineSmall Offline
Feb 16, 2013 - 1:07 am

Our Web contractor fixed the problem in a few minutes, I believe everything is now working.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 16, 2013 - 4:20 am

OK. Good news.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625