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'; ?> -Brad |
I've pass this on to Flynn
|
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.
|
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. |
Yup ran into the same issue.
Thanks for taking the time to document this. |
All times are GMT -6. The time now is 03:07 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.