WordPress.org

Support

Support » Plugins and Hacks » [Resolved] No Tabs shown anymore

[Resolved] No Tabs shown anymore

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Lowe

    @squelch

    At a guess the huge bugs in your theme are causing the issue 😉

    Uncaught TypeError: undefined is not a function custom.js?ver=3.9.1:5

    Looking at the JavaScript in question:

    function doClear(theText) { if (theText.value == theText.defaultValue) { theText.value = "" } }
    function doDefault(theText) { if (theText.value == "") { theText.value = theText.defaultValue } }
    
    $(document).ready(function(){
    ...etc...

    This script does not have any jQuery noConflict wrappers. From the Codex:

    The jQuery library included with WordPress is set to the noConflict() mode (see wp-includes/js/jquery/jquery.js). This is to prevent compatibility problems with other JavaScript libraries that WordPress can link.

    In the noConflict() mode, the global $ shortcut for jQuery is not available, so you can still use:

    jQuery(document).ready(function(){
        jQuery(#somefunction) ...
    });

    but the following will either throw an error, or use the $ shortcut as assigned by other library.

    $(document).ready(function(){
         $(#somefunction) ...
    });

    Also the theme’s loading its own copy of jQuery instead of using WordPress’s built-in copy:

    http://wj-tfa.de/wp-content/themes/Ocean/js/jquery-1.4.1-and-plugins.min.js?ver=3.9.1

    Squelch TAAS tells WP to load its built-in copy of jQuery (which is the correct thing to do) and so WordPress is loading jQuery AND your theme is loading jQuery, which will conflict with each other.

    You’re using the Ocean theme from 2s Studio. Since their website no longer seems to exist I’d guess that they’re no longer in business, so asking for an update is probably out of the question. I’d have to say that I can’t say I’m surprised they’re out of business given the way their theme “works”.

    My suggestion would be to try a different theme, although I appreciate that’s a pain.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] No Tabs shown anymore’ is closed to new replies.