Support Forum
Hi all,
I have a new theme for my site; I've got everything working accept ... another JQuery issue 🙁
Here's a link to the theme: http://freetotry.me/cosmomagazine/ I can't link to the theme on my site, had to de-activate it because users can't post; the button's don't work anymore. Same with editing, postbag and such.
Does anybody know what to do to solve the JQuery issues? I've asked the Cosmo-people, but they don't know SP and couldn't help me).
Many thanks in advance!
I was afraid you might say that
I'll activate the theme and forum, it'll be on http://vertrekkersinfo.nl in about an hour or so.
Thx!
Oké. forum is online @ http://vertrekkersinfo.nl/forum/
I've created a testforum (first forum, http://vertrekkersinfo.nl/foru.....est-forum/) where you shoud have full access.
Thanks again for all your help, high time I head over to PayPal
Well let's see if we can get you up and working first.
I have never seen anything quite like this! Usually it is because jQuery is being abused and loaded incorrectly. This time I can't find it at al! And NONE of the forum scripts are being loaded either.
Try this first: Forum admin > Integration - turn off the option to load javascript in the footer.
If that doesn't do anything you need to check that your theme has the mandatory call to wp_head() in the header and wp_footer() in the footer. These are usually in the header.php and footer,php templates. Actually you should check these anyway.
lastly some code is being loaded that IS causing an error but you will need to find it I am afraid. It is this:
<script type="text/javascript"> /* slider */ $(document).ready(function() { $('.slideshow').cycle({ fx: 'fade', /* choose your transition type, ex: fade, scrollUp, shuffle,scrollLeft, etc...*/ next: '#next_navigation', prev: '#prev_navigation', timeout: 12000, pause: 1 }); }); </script>
This is just plain wrong. You see the two $ usages? These should both be replaced with the word jQuery for Wp to function properly. This is not working now (slider?) whatever it is because it is throwing an error and stopping.
I'll be closing down in about 5 minutes for the night but will be back in the morning,
YELLOW
SWORDFISH
|
Thank you!
The java-in-footer option was already turned off and the mandatory calls are in place. Off to find that code now!
BTW, I noticed, in header.php:
wp_deregister_script('jquery'); /*we don't want to load default jQuery from Wordpress*/
As I n00b I'm wondering if that should be there?
No it should not. That is EXACTLY what you Do want - to load it from WordPress.
The problem is I couldn't see it being loaded anywhere else unless it has been bundled into an amalgam, of scripts by the theme author.
That might explain why the forum scripts are not being loaed as well as they are dependent upon jQuery.
why do these people do such awful things?!!!
YELLOW
SWORDFISH
|
I dunno
I shouldn't have bought their themes 🙁 They're "full of surprises" and the support is non-existent. If I could afford it I'd simply buy another theme, but for now this will have to do. On the bright side: I'm learning to look at code and actually understand some of it
Anyway, can I remove that line -has no business being there!- without creating all sorts of new problems? I'll email Cosmo about it, don't expect much of an answer but at least they'll know its causing their customers all sorts of headaches.
1 Guest(s)