Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

How to move javascript to footer?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 13, 2012, 03:25 PM
Viktor Garbar
 
13 posts · Aug 2011
I refer to theme javascript. Is it possible to move it to footer?

I moved all scripts to footer using plugin however it lead to an error with jQuery

Uncaught ReferenceError: jQuery is not defined in /?bfa_ata_file=js:7

Theme javascript is at page header and jQuery is in footer.

You can see an error here for example http://maidan.org.ua/2012/02/tsenzur...idkladajetsya/ (page is in Ukrainian)

It breaks functioning on of plugins using jQuery.

I'd like to move all theme javascript to footer, but I am not yet that familiar with WP codex to do that myself and seeking your advice.

Since moving javascript to footer is general recomendation for speeding up pages maybe you are considering such possibility as well?

Thank you
Viktor

Last edited by juggledad; Mar 13, 2012 at 03:50 PM.
  #2  
Old Mar 13, 2012, 04:04 PM
juggledad's Avatar
juggledad
 
22,323 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
You can make the theme's jscript external - see ato->Configure CSS & JS options
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 13, 2012, 04:09 PM
Viktor Garbar
 
13 posts · Aug 2011
I did make them external. But how to move them to footer?

Plugin "javascript to footer" does not process them for whatever reason. Plugin author writes for example this http://www.prelovac.com/vladimir/bes...rdpress-plugin which maybe an explanation why.
  #4  
Old Mar 13, 2012, 04:25 PM
juggledad's Avatar
juggledad
 
22,323 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I've added this as a 'Request For Enhancement' (RFE) for the developer to take a look at.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 13, 2012, 04:26 PM
Viktor Garbar
 
13 posts · Aug 2011
Thank you!!!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to Add Javascript to Post Footer (or Kicker)? LaneLester Post-Kicker, -Byline & -Footer 11 Aug 10, 2011 07:02 PM
[SOLVED] What is the best way to move down the footer? Wimbledon Atahualpa 3 Wordpress theme 4 Jan 4, 2011 06:54 AM
Move footer Karin Atahualpa 3 Wordpress theme 1 Oct 27, 2009 11:10 AM


All times are GMT -6. The time now is 07:07 AM.


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