Support » Plugin: Post UI Tabs » [Plugin: Post UI Tabs] Place Tabs in Widget

Viewing 1 replies (of 1 total)
  • Plugin Author Mark / t31os


    If your sidebar displays content from posts, pages or a custom post type, then yes, else no.

    Post UI Tabs is for converting content in the post editor into tabs, if you wish to create tabs in other areas of your WordPress site you may wish to seek out other plugins or look to creating your own tabs(which isn’t as hard as you may think).

    Here’s a few examples that are easy to follow.

    Although, something i’d note when following such guides is that you only actually need one call to wp_enqueue_script and not several.

    The following will suffice for loading your own JS file with the tabs initialization code(no need for all those additional calls).

    wp_enqueue_script(  'your-script-handle', 'PATH_TO_FILE', array( 'jquery-ui-core', 'jquery-ui-tabs' ), false, false );

    Where PATH_TO_FILE would need to be replaced with an appropriate function call to create the path to the file, for example ..

    get_stylesheet_directory_uri() . '/myjs.js'


    plugins_url( '', __FILE__ ) . '/myjs.js'

    .. depending on where you are placing the file.

    Hope that helps. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Post UI Tabs] Place Tabs in Widget’ is closed to new replies.