Support » Plugin: Q2W3 Fixed Widget for WordPress » a.target.className.indexOf is not a function

Viewing 6 replies - 16 through 21 (of 21 total)
  • Changing default WP’s jQuery version isn’t recommended AFAIK. So this plugin should work out of the box with plain WP core.

    Have no idea what “activated a plugin to add a custom id” means.

    Anyway, I’m sorry I feel unable to be of further help. Hope Mr. Bond would notice this thread and look into this at some point.

    I agree, but if I do not have a more recent version of jquery, the sticky wont work.
    I made a backup of the previous file, in case there is an issue.

    “Have no idea what “activated a plugin to add a custom id” means.”
    The plugin page ( https://wordpress.org/plugins/q2w3-fixed-widget/ ) mentions : “Widgets must have an id attribute”

    I couldnt see how to add an id to the widget without activating a plugin doing so… but now there one.

    From the plugin page, all of those requirements are met, beside the autoptimize/ q2w3 error :
    – jQuery 1.7 required. jQuery 1.8.3 (or later) is recommended.
    – No JavaScript errors, coused by other plugins and scripts.
    – wp_head() and wp_footer() functions in header.php and footer.php files.
    – Widgets must have an id attribute.

    I solved the problem.
    a.target.className.indexOf is not a function

    Edit q2w3-fixed-widget.min.js javascript as below.

    FIND:
    &&a.target.className.indexOf("q2w3-fixed-widget-container")==-1

    REPLACE:
    &&!a.target.className&&a.target.className.indexOf("q2w3-fixed-widget-container")==-1

    Thanks for that!

    The dev team should probably take it into account for the next version, otherwise it will need to be fixed once again

    I have done all the advice of the author of Plugin. You don’t need to make any changes to jQuery.
    Just edit the above process. Hopefully update the plugin as soon as possible.
    Here is my sample page .. You can see in a device without MOBILE ..

    http://www.ekonobil.com/is-dunyasi/acun-ilicali-16-basamak-birden-firladi

    Had to re-apply the same fix to the new update, and finally noticed what I suggested before had a typo. It should be:

    In q2w3-fixed-widget.min.js:

    jQuery(document).ready(function($){
    //q2w3 code here
    });

    This code wrapping is working for me, again.

    I’m sorry for any confusion.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘a.target.className.indexOf is not a function’ is closed to new replies.