Scripts To Footer
This small plugin moves scripts to the footer. Note that this only works if you have plugins and a theme that utilizes wp_enqueue_scripts correctly. You can disable the plugin on specific pages and posts directly via the post/page edit screen metabox. You can disable the plugin on specific archive pages (blog page, search page, post type and taxonomy archives) via the settings page. Everything Broken? Try placing jQuery back into the header via Settings > Scripts to Footer, “Keep jQuery in the Header” checkbox. If that doesn’t work, refer to the walkthrough below for using the stf_exclude_scripts filter for the script that is causing the issue. Check out the documentation on GitHub or some quick walkthroughs below. Keeping specific Scripts in the Header As of version 0.6 you can now keep specific scripts in the header. Note: this will print any scripts they depend on as well (if you want to keep jquery-effects-core in the header, you’ll also get jQuery in the header, so no need to add both). Specifically for jQuery, see the settings page option, as it is a common request we’ve built it into the settings. For any other scripts, use this filter: add_filter( 'stf_exclude_scripts', 'jdn_header_scripts', 10, 1 ); function jdn_header_scripts( $scripts ) { $scripts[] = 'backbone'; // Replace 'backbone' with the script slug return $scripts; } You will need the correct script slug, which is used when the script is registered, and the script will only be printed into the header if it’s enqueued. Check out the scripts that come registered out-of-the-box with WordPress. Note: As of version 0.6.3, conditional tags will work with the stf_exclude_scripts filter. Custom Post Type Support If you’re comfortable with code you can use the scripts_to_footer_post_types filter to change the post types this applies to (it only applies to pages and posts by default). For example, if you have a custom post type called “project” you could add support for this metabox via the post type filter like this: function stf_add_cpt_support( $post_types ) { $post_types[] = 'project'; return $post_types; } add_filter( 'scripts_to_footer_post_types', 'stf_add_cpt_support' ); Excluding Pages/Posts/Templates Via Filter You can either use the checkbox option to disable the plugin’s action on a specific page/post, or you can utilize a filter. The filter also passes the post/page id, if there is one (archive templates don’t have ids!). For example, for the “page” post type: function stf_exclude_my_page( $exclude_page, $post_id ) { if ( is_front_page() ) { $exclude_page = 'on'; // this turns on the "exclude" option } return $exclude_page; } add_filter( 'stf_page', 'stf_exclude_my_page' ); Replace stf_page with stf_post for posts, or the slug of your custom post type. For instance, a post type called “project” can be filtered with stf_project. More Documentation See the plugin’s wiki. Development / Contributing View this plugin on GitHub. Support Please feel free to open a Github Issue to report conflicts or goto the WP.org support forum. If there is something wrong with Scripts-to-Footer, we’ll update it. However, if it’s a another plugin or theme we can only contact the developer with the issue to attempt to resolve it.
WP Whoosh
Build sites for friends and family, build sites for your different business lines, build top quality sites for clients, really QUICKLY. EASY as you don’t need to know cPanel, Apache, Linux and PHP to get a professional WordPress installation FAST with your website tuned for optimum performance for your users on the public site, and for yourself in the admin panel, by leveraging file compression and browser caching SEO with setup of robots.txt, secure Google sitemaps, ping spam protection, nofollow links in the footer and automatic noindexing of your Terms and Privacy pages (just because all your pages on your site link to these standard pages does not mean you want them to rank highest on your site after the home page) SMART with the automatic installation of quality plugins, your standard pages such as Contact, Privacy and Terms and Conditions, Social Media Buttons, Database backups, footer copyright and trademark widgets to boost the site’s credibility SECURE with strong username and passwords for database and admin access, and your WordPress username is kept completely private. WP Whoosh does NOT change the site where you have it installed – IT BUILDS NEW SITES Builds sites on any standard cPanel host Requires a Whoosh API key as the installation is performed by our servers on your behalf Builds sites using WordPress themes: TwentyTen, TwentyEleven, TwentyTwelve and TwentyThirteen Builds sites using these popular themes: Atahualpa, CatchBox, Delicate, Graphene, PageLines, PinBoard, Responsive and Suffusion. For existing Genesis License holders only, Whoosh builds all the responsive StudioPress Genesis child themes plus a few really cool derivatives. Check out our latest theme at http://demo.wpwhoosh.com/henry/ Lots more themes to come… Links Here are some of the useful WP Whoosh WordPress Plugin links WP Whoosh Plugin: http://www.wpwhoosh.com/ Features: http://www.wpwhoosh.com/features/ Templates: http://www.wpwhoosh.com/templates/ Demo: http://www.wpwhoosh.com/demo/ Help: http://www.wpwhoosh.com/help/