[wp-hackers] How do you get jQuery tabs working in Wordpress 2.8?

Daiv Mowbray daiv at daivmowbray.com
Fri Jun 19 09:49:07 GMT 2009


Correction to my last post:

It seems that I failed to update cache or something.
This following does work for 2.7 and 2.8 :
______________________

  <script type="text/javascript">
// <![CDATA[

function create_ui_tabs() {
     jQuery(function() {
         var selector = '#ssslider';
             if ( typeof jQuery.prototype.selector === 'undefined' ) {
             // We have jQuery 1.2.x, tabs work better on UL
             selector += ' > ul';
         }
         jQuery( selector ).tabs({ fxFade: true, fxSpeed: 'slow' });

     });
}

jQuery(document).ready(function(){
         create_ui_tabs();
});

// ]]>
</script>
__________________________



On Jun 19, 2009, at 10:44 AM, Daiv Mowbray wrote:

> Hi thanx for the feedback, and well, I'm perplexed.
> I've applied the jquery as such;


----------
Daiv Mowbray
daiv at daivmowbray.com
----------




More information about the wp-hackers mailing list