Support » Plugin: Tabber Tabs Widget » [Plugin: Tabber Tabs Widget] Is there any way of displaying the widget on document ready as opposed

  • Hey there, great plugin. Really like it but the only issue I have is that when the widget is displayed once the page loads it kinda seems a little jumpy, no fade or expansion – just a sudden bang!

    It would be great if it could appear on the document ready event.

    Now I reckon the magic happens somewhere in here

    oldOnLoad = window.onload;
      if (typeof window.onload != 'function') {
        window.onload = function() {
          tabberAutomatic(tabberArgs);
        };
      } else {
        window.onload = function() {
          oldOnLoad();
          tabberAutomatic(tabberArgs);
        };
      }

    But I’m not too sure what to do …

    Also this plugin is throwing errors in WP_Debug. I’ll copy/paste for prosperity.

    Notice: Use of undefined constant TABBER_TABS_DIR - assumed 'TABBER_TABS_DIR' in D:\wamp\www\NewSite\wp-content\plugins\tabber-tabs-widget\tabber-tabs.php on line 31
    
    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in D:\wamp\www\NewSite\wp-includes\functions.php on line 3587
     .....yadda yadda... ..\tabber-tabs.php:48

    http://wordpress.org/extend/plugins/tabber-tabs-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • For anyone interested – I figured how to get it to load on document.ready:

    oldOnLoad = document.ready;
      if (typeof document.ready != 'function') {
        document.ready = function() {
          tabberAutomatic(tabberArgs);
        };
      } else {
        document.ready = function() {
          oldOnLoad();
          tabberAutomatic(tabberArgs);
        };
      }

    It’d be great to get rid of those WP_Debug errors too 🙂

    Thanks for sharing. This should be the default conf, as the plugin looks damn slow otherwise.

    which file do i make these edits in? thanks.

    EDIT: tabber.js – nevermind

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Tabber Tabs Widget] Is there any way of displaying the widget on document ready as opposed’ is closed to new replies.