WordPress.org

Forums

Squelch Tabs and Accordions Shortcodes
[resolved] No Tabs shown anymore (2 posts)

  1. patrick2p
    Member
    Posted 1 year ago #

    Hi,

    I used to use Thethe Fly Tabs for my Website and changed to Squelch Tabs and Accordings because Thethe Fly seams not to work anymore.

    But nothing changed. My page Looks the same as bevor. Can someone please have a look on the page:

    http://wj-tfa.de/?page_id=271

    What´s wrong?

    Thanks a lot.

    Patrick

    https://wordpress.org/plugins/squelch-tabs-and-accordions-shortcodes/

  2. Matt Lowe
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Squelch Tabs and Accordions Shortcodes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.