WordPress.org

Ready to get started?Download WordPress

Forums

wp_enqueue_style('wp-pointer') Conflict With jQuery UI Button (2 posts)

  1. Zara Walsh
    Member
    Posted 1 year ago #

    These lines which I'm not using in my own plugin...

    wp_enqueue_style('wp-pointer');
    wp_enqueue_script('wp-pointer');

    conflict with this code below which creates a simple jQuery UI button and it is causing a lot of users problems. Fixing it will make plenty people happy so I'm under pressure in the email inbox, as always...

    function csv2post_jquery_button(){?>
        <script>
            $(function() {
                $( "button, input:submit, a", ".jquerybuttoncsv2post" ).button();
                $( "a", ".jquerybuttoncsv2post" ).click(function() { return false; });
            });
        </script><?php
    }
    
    function csv2post_formend_standard($buttontitle = 'Submit',$buttonid = 'notrequired'){
        if($buttonid == 'notrequired'){
            $buttonid = 'csv2post_notrequired';
        }else{
            $buttonid = $buttonid.'_formbutton';
        }?>
    
        <br />
    
        <div class="jquerybuttoncsv2post">
            <button id="<?php echo $buttonid;?>"><?php echo $buttontitle;?></button>
        </div>
    
        </form><?php
    }

    Does anyone have any ideas why this might be happening?

    Any plugin installed along side my own that uses the wp-pointer script causes my plugins interface to break down totally. jQuery Tabs, dialog and buttons all fail.

    Thank you for any insight and suggestions.

  2. Zara Walsh
    Member
    Posted 1 year ago #

    Sorry I should re-phrase this.

    The scripts loaded obviously conflict. Just wondering if anyone has run into it before. My plugin loads the very latest .js files from Google and does it properly.

    Yet it would seem my plugin is still the one at fault considering wp-pointer is WordPress core and I'm sure there are plenty other plugins using jQuery UI buttons that work just fine.

    Wordfence Security and CSV 2 POST are the two plugins on here that conflict.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.