Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

How to move javascript to footer?


  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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



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 10:34 PM.


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