I have a set of tabs for which I'd like to make none to be selected by default until you click on it. How would I make that work while using WP-UI? If I was going to add that into the plugin files, where would I add it?
http://docs.jquery.com/UI/Tabs#option-selected
Thanks!
http://wordpress.org/extend/plugins/wp-ui/
Hi there,
I think the collapsible tabs option found in "WP UI Options page -> Effects -> Collapsible tabs" would be perfect for you. :)
I've been using that. Maybe I'm missing something? When the page loads, I want none of the tabs to be open until I click on one of them. The same as using -1 as the value for selected.
Ok, You will have to pass -1 as you said, with a separate snippet either embedded in the post or in the theme.
<script type="text/javascript">
jQuery(function() { jQuery('.ui-tabs').tabs({ collapsible : true, selected : -1 });
</script>
I tried inserting that in the theme, and it didn't work. I tried it in multiple locations. Any other suggestions?
Please try inserting this at the very end of the post. Remove all the line breaks and try again.