WP 3.1 upgrade breaks AutoFocus+ theme
There’s an update available.
There’s an update available.
Take a look at Infinite Scroll plugin which Automatically append the next page of posts (via AJAX) to your page when a user scrolls to the bottom.
A better method is to use the built in WordPress hooks in your functions.php with conditionals if needed ( for instance to load it only on certain pages). For hooking into admin you can use admin_print_scripts for hooking into the front you can use wp_print_scripts or one of the many other action hooks. For example: … Read more
You typically should use the jQuery version that’s built in. There are instances where you might want to use wp_dequeue_script(‘jquery’) and then add a different version of jQuery. Here’s the best way to add a script dependent on jQuery: function theme_register_scripts(){ wp_enqueue_script(‘jquery’); wp_enqueue_script(‘myscript-name’, get_bloginfo(‘stylesheet_directory’) . ‘/js/myscript.js’, array(‘jquery’)); } add_action(‘wp_print_scripts’, ‘theme_register_scripts’); The third argument of wp_enqueue_script … Read more
Remove the get_header(), get_footer(), and get_sidebar() references from single-team.php.
WordPress uses jQuery in noConflict() mode, so $ is not available for use in Firebug console. Just use jQuery(‘#wpbody’) instead.
First off, kudos to this pretty cool solution. I think you’re on the right track and not sure how much more you could do. You could certainly replicate the above with PHP & CSS, thus not requiring jQuery. It would require you to have an array of your sizes and just loop through them. This … Read more
This is just a simple javascript issue. When your javascript that attaches the click behavior to the form is parsed, the form element doesn’t yet exist because it’s further down the page, so it doesn’t get attached. Either move the javascript below the form, wrap it in a jQuery(document).ready(), or use live. EDIT – $(‘#ajaxForms’).serialize(); … Read more
All of these scripts are already registered to print in the footer. See wp-includes/script-loader.php for details. When you try to register the scripts again WordPress doesn’t change that. The workaround would be to register a new script for wp_head with those scripts as dependencies (the third parameter of wp_enqueue_script()). Do not register the scripts in … Read more
This executes, when the DOM has been constructed, before all content has been loaded $(document).ready(function(){ … }); $(function(){…}); // short form This executes, when all content has been loaded $(window).load(function(){ … }); This executes immediately, when it is first encountered by the browser (function(){ … })(); The latter is known as a self-executing anonymous function, … Read more