Forums

  1. kenboer
    Member
    Posted 1 year ago #

    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/

  2. kavingray
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    I think the collapsible tabs option found in "WP UI Options page -> Effects -> Collapsible tabs" would be perfect for you. :)

  3. kenboer
    Member
    Posted 1 year ago #

    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.

  4. kavingray
    Member
    Plugin Author

    Posted 1 year ago #

    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>
  5. kenboer
    Member
    Posted 1 year ago #

    I tried inserting that in the theme, and it didn't work. I tried it in multiple locations. Any other suggestions?

  6. kavingray
    Member
    Plugin Author

    Posted 1 year ago #

    Please try inserting this at the very end of the post. Remove all the line breaks and try again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags