Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Jquery Issue in ATA 3.6.1+ (http://forum.bytesforall.com/showthread.php?t=12617)

BradBrown Feb 3, 2011 05:55 PM

Jquery Issue in ATA 3.6.1+
 
I ran across something in the newer versions of Atahualpa that caused me some problems. I rearranged the ATA code a bit to get around it, so I'm good, but I thought I'd mention it here anyway. Other people may encounter this, and I'm also open to ideas for fixes that wouldn't involve editing the ATA code.

My site, http://www.bradbrownmagic.com, uses some scripts that rely on Jquery: Cufon and an image rotator. The code is placed in the Header Inserts section. They stopped working when I upgraded to the newer ATA version. The problem is that beginning with version 3.6.1, things were rearranged in the header. Now Jquery isn't loaded until after the Header Inserts.

The best solution I could come up with was to edit the ATA code so the inserts load after wp_head(). I assume there are situations where this could be a bad thing, or it wouldn't have been changed in ATA in the first place. However, this worked for my issue. Here's what I changed. In header.php, I moved the following line of code from higher up to right before the </head>:
Code:

<?php if( $bfa_ata['html_inserts_header'] != '' ) include 'bfa://html_inserts_header'; ?>
If updating future versions of ATA so the inserts load after wp_head() is a possibility, then that would be great for me.

-Brad

juggledad Feb 3, 2011 07:09 PM

I've pass this on to Flynn

Flynn Feb 20, 2011 04:48 AM

I've added this in 3.6.5, the next version after 3.6.4 which is in the WP viewer queue since 3 weeks now.

BradBrown Feb 20, 2011 01:58 PM

Thanks!

BTW-If anyone else is running into this, I realized there is another work-around rather than editing the ATA code. If you use the WP Minify plugin, it will load all the external javascript, including jquery, in one combined file that loads at the very top of the head.

twola Mar 4, 2011 11:19 PM

Yup ran into the same issue.

Thanks for taking the time to document this.


All times are GMT -6. The time now is 05:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.